Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.17 KB

Readme.md

File metadata and controls

44 lines (29 loc) · 1.17 KB

deep-equal

Build status Git tag NPM version Code style

Check two values for deep equality

Installation

$ npm install @f/deep-equal

Usage

var deepEqual = require('@f/deep-equal')

deepEqual({a: 1, b: [1, 2]}, {a: 1, b: [1, 2]})    // true
deepEqual({a: 1, b: [1, 2]}, {a: 1, b: [1, 2, 3]}) // false

API

deepEqual(a, b)

  • a - Value to compare against b
  • b - Value to compare against a

Returns: Boolean indicating whether or not a is the same as b.

License

MIT