@f/equal-obj

1.2.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @f/equal-obj

    Weekly Downloads

    6

    Version

    1.2.1

    License

    MIT

    Last publish

    Collaborators

    • f