• Determines whether two JS values are equal, recursing into objects and arrays. NaN is treated specially, such that objectEquals(NaN, NaN). +/-0.0 are treated as equal by default, but can be opted to be distinguished.

    Parameters

    • x: unknown

      the first JS values that get compared

    • y: unknown

      the second JS values that get compared

    • distinguishSignedZero: boolean = false

      if set to true, treat 0.0 and -0.0 as unequal. Default to false.

    Returns boolean

Generated using TypeDoc