Libraries
    Preparing search index...

    Function deepEqual

    • Compares two objects and returns true if they have the same structure and values. Can work with arrays and objects, nested objects, recursive objects, dates, etc.

      Parameters

      • p1: any

        first object

      • p2: any

        second object

      • Optionaloptions: { disregardArrayOrder?: boolean }

        additional options

        • OptionaldisregardArrayOrder?: boolean

          if true, the order of the elements in the array will be disregarded e.g. [1, 2] and [2, 1] will be considered equal

      Returns boolean

      true if the objects are equal, false otherwise