@metreeca/core - v0.9.1
    Preparing search index...

    Function equals

    • Checks deep object equality.

      Object pairs are deeply equal if they contain:

      • two equal primitive values or two equal functions
      • two plain objects with deeply equal entry sets
      • two arrays with pairwise deeply equal items

      Parameters

      • x: unknown

        The target object to be checked for equality

      • y: unknown

        The reference object to be checked for equality

      Returns boolean

      true if x and y are deeply equal; false otherwise

      This function does not handle circular references and will cause infinite recursion leading to a stack overflow if the inputs contain cycles.