isDeepEqual
isDeepEqual(
a,b,comparisonStrategy?):boolean
Defined in: packages/core/src/object/is-deep-equal.ts:26
Compare two values for deep equality using the specified strategy.
Supported strategies: "strict", "loose", "sameValue",
"sameValueZero", or a custom predicate (a, b) => boolean.
For structural types (plain objects, arrays, Map, Set) the structure is
always compared recursively; the strategy is applied at each leaf. For Date
and RegExp the strategy compares .getTime() / .source + .flags
respectively — except when a predicate is used, in which case the predicate
receives the raw Date / RegExp objects.
Parameters
Section titled “Parameters”unknown
First value to compare
unknown
Second value to compare
comparisonStrategy?
Section titled “comparisonStrategy?”EqualityComparisonStrategy<unknown, unknown> = "strict"
The equality comparison strategy to use (default is
"strict")
Returns
Section titled “Returns”boolean
True if the values are deeply equal, false otherwise