@verbi/compare
v0.0.3
Published
Efficient deep comparison of two values
Downloads
2
Readme
@verbi/compare
Efficient deep comparison of two values.
Features:
- plain objects are compared recursively, class instances are compared by identity
- supports common native structures:
Date
,RegExp
,Error
,Array
,Map
,Set
- respects
Symbol.iterator
andvalueOf
- does not compare the same object pairs twice
- supports circular structures
Caveats:
- does not support typed arrays yet
License
MIT