@tremendous/help
    Preparing search index...

    Function isDeepEqual

    • Compares two objects for deep equality.

      This function performs a deep comparison between two objects to determine if they are equal.

      Parameters

      • object1: Record<string, unknown>

        The first object to compare.

      • object2: Record<string, unknown>

        The second object to compare.

      Returns boolean

      • Returns true if the objects are deeply equal, otherwise false.
      isDeepEqual({ a: 1, b: { c: 2 } }, { a: 1, b: { c: 2 } }); // true
      isDeepEqual({ a: 1, b: 2 }, { a: 1, b: { c: 2 } }); // false