Performs a deep comparison of two objects and returns true if they're
equal.
This method supports comparing arrays, array buffers, booleans, date objects,
error objects, maps, numbers, Object objects, regexes, sets, strings,
symbols, and typed arrays. Object objects are compared by their own, not
inherited, enumerable properties. Functions and DOM nodes are compared by
strict equality, i.e. ===.
Parameters
a: unknown
The object to compare with b.
b: unknown
The object to compare with a.
Returns boolean
true if the two objects are equal. Otherwise false.
Performs a deep comparison of two objects and returns
trueif they're equal.This method supports comparing arrays, array buffers, booleans, date objects, error objects, maps, numbers, Object objects, regexes, sets, strings, symbols, and typed arrays. Object objects are compared by their own, not inherited, enumerable properties. Functions and DOM nodes are compared by strict equality, i.e. ===.