@f/equal-obj

Shallow object equality check

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/equal-obj
101.2.16 years ago6 years agoMinified + gzip package size for @f/equal-obj in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.