• 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

    • Optional options: {
          disregardArrayOrder?: boolean;
      }

      additional options

      • Optional disregardArrayOrder?: 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

Generated using TypeDoc