UNPKG

kewlr

Version:

Compare objects and return whether they are equal according to a recursive equality algorithm. This module is around 6 - 9% faster then similiar modules. Works for both NodejS and the browser.

52 lines (33 loc) 1.02 kB
# Changelog # v. 0.4.0 - improved fix for Map() and Set() IE11 bug - improved IE feature detection - code size reduction # v. 0.3.4 - fixed Map() and Set() IE11 bug # v. 0.3.3 - major iterator refactoring. Now supports native implementation + all polyfills # v. 0.3.2 - added Chai mode to be 100% compatible with Chai's deepEqual module, but with Kewlr performance - added more tests - updated readme # v. 0.3.0 - BC! loose mode renamed to shallow mode - added 'match' mode to be Chai compatible - cleanup - updated readme # v. 0.2.6 - works with all browsers # v. 0.2.3 - fixed array circular reference bug - speeding up 'loose mode' - cleanup # v. 0.2.2 - improved performance - fixed a couple of bugs # v. 0.2.1 - improved performance for functions, arrows and generators with 32% - solved 'typeof' Safari bug for function detection - returns only falsey - fixed a few bugs with native object types - improved performance all over - updated readme