/object/equals
stdChecks if two objects are deeply equal.
Type signature
(a: unknown, b: unknown) => boolean;
export default equalsDeep
Examples
equals({ a: 1 }, { a: 1 });
// ⇒ true
Try in REPL
equals(
{ b: [1, 2] },
{ b: [1, 2] },
);
// ⇒ true
Try in REPL
Questions
- How to check if two objects are equal?
- How to check deep object equality?