Function isEqual

  • Determine whether two values are the same or strictly equivalent. Checking whether values are the same only applies to built in objects. For user-defined objects this checks for only referential equality so two different instances with the same values are not equal.

    Parameters

    • a: unknown

      The first value

    • b: unknown

      The second value

    Returns boolean

    True if value contents are the same, false otherwise.