1.2.1 • Published 10 years ago

@f/equal-obj v1.2.1

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

equal-obj

Build status Git tag NPM version Code style

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