Creates a function that checks if two values are deeply equal.
https://jmlweb.github.io/mochila/functions/isDeepEqual.html
const isDeepEqual = makeIsDeepEqual();isDeepEqual(null)(null); // trueisDeepEqual(null)(undefined); // falseconst isDeepEqual2 = makeIsDeepEqual({ strictNullComparison: false });isDeepEqual2(null)(undefined); // trueconst isDeepEqual3 = makeIsDeepEqual({ maxDepth: 2 });isDeepEqual3({ a: { b: { c: 1 } } })({ a: { b: { c: 1 } } }); // false Copy
const isDeepEqual = makeIsDeepEqual();isDeepEqual(null)(null); // trueisDeepEqual(null)(undefined); // falseconst isDeepEqual2 = makeIsDeepEqual({ strictNullComparison: false });isDeepEqual2(null)(undefined); // trueconst isDeepEqual3 = makeIsDeepEqual({ maxDepth: 2 });isDeepEqual3({ a: { b: { c: 1 } } })({ a: { b: { c: 1 } } }); // false
The options for deep equality comparison with properties:
A function that takes two values and returns true if they are deeply equal, false otherwise.
Creates a function that checks if two values are deeply equal.
See
https://jmlweb.github.io/mochila/functions/isDeepEqual.html
Example