Licence
MIT
Version
1.0.1
Deps
4
Vulns
0
Weekly
0
equal
Check two things for shallow equality
Installation
$ npm install @f/equal
Usage
var equal = require('@f/equal')
if (equal(nextProps, prevProps)) {
component.render(nextProps)
}
API
equal(a, b)
a- An array/object/value to check againstbfor equalityb- An array/object/value to check againstafor equality
Returns: A Boolean value indicating whether a and b are shallow equal.
License
MIT