Skip to content

isSameValueEqual

isSameValueEqual(a, b): boolean

Defined in: packages/core/src/object/is-equal.ts:107

This is the same as Object.is().

Object.is() determines whether two values are the same value. Two values are the same if one of the following holds:

  • Both values are undefined.
  • Both values are null.
  • Both values are true or both values are false.
  • Both values are strings of the same length with the same characters in the same order.
  • Both values are the same object (meaning both values reference the same object in memory).
  • Both values are numbers and either both are +0, both are -0, both are NaN, or both are non-zero and have the same value.

unknown

unknown

boolean