nano-equal
nano-equal copied to clipboard
Ultra fast and compact implementation of deep equal without any production dependencies.
The example below is expected to return `true` but returns `false`: ```tsx var nanoEqual = require("nano-equal") const a = {aaa: 123}; a.a = a; const b = {aaa: 123}; b.a...
Remove please brackets after `Object.prototype.valueOf()` and `Object.prototype.toString()` ``` if (a.valueOf !== Object.prototype.valueOf() && b.valueOf !== Object.prototype.valueOf()) { return a.valueOf() === b.valueOf(); } if (a.toString !== Object.prototype.toString() && b.toString !== Object.prototype.toString())...