@f/equal-obj
v1.2.1
Published
Shallow object equality check
Downloads
16
Readme
equal-obj
Shallow object equality check
Installation
$ npm install @f/equal-obj
Usage
var equal = require('@f/equal-obj')
equal({a: 1}, {a: 1}) // => true
equal({a: 1}, {a: 2}) // => false
API
equalObj(obj1, obj2)
obj1
- First object.obj2
- Second object.
Returns: Boolean, indicating whether obj1
and obj2
are equal.
License
MIT