first object
second object
Optionaloptions: { disregardArrayOrder?: boolean }additional options
OptionaldisregardArrayOrder?: booleanif true, the order of the elements in the array will be disregarded e.g. [1, 2] and [2, 1] will be considered equal
true if the objects are equal, false otherwise
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.