deep-equal-ext
Extends node-deep-equal
to support comparing these values:
- Function
- RegExp
- Getter
- Setter
Note that above values are compared by calling toString()
and matching strings.
How To Use
npm i --save deep-equal-ext
const objectA = reg: /\w+/ { return a + b } obj: a : 2 3 b : 4 { return thismX } { thismX = v }const objectB = reg: /\w+/ { return a + b } obj: a : 2 3 b : 4 { return thismX } { thismX = v } // true