Structurally compares plain objects and arrays (including cycles). Dates
compare by timestamp; primitives and opaque objects use Object.is semantics.
Only enumerable own string/symbol properties participate in structural
comparisons. Shared-reference topology does not affect equality.
Parameters
p1: any
p2: any
Optionaloptions: {disregardArrayOrder?:boolean}
OptionaldisregardArrayOrder?: boolean
Ignore array element order, but preserve duplicate and hole counts.
Structurally compares plain objects and arrays (including cycles). Dates compare by timestamp; primitives and opaque objects use Object.is semantics. Only enumerable own string/symbol properties participate in structural comparisons. Shared-reference topology does not affect equality.