Compares two values structurally.
Supported types: all primitives (including NaN === NaN), null, undefined, Array, plain object, Date, RegExp, Set, Map.
NaN === NaN
null
undefined
Array
object
Date
RegExp
Set
Map
any value to compare
true if values are structurally equal
true
Compares two values structurally.
Supported types: all primitives (including
NaN === NaN),null,undefined,Array, plainobject,Date,RegExp,Set,Map.