Skip to content

micro-js/deep-equal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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