Skip to content

jaycetde/deepequal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deepequal Build Status

Deep comparison of two variables

Unlike deep-equal, this will also compare Buffers, Regular Expressions, and NaN (which I believe should equal NaN).

var deepEqual = require('deepequal');

deepEqual([1, 2, 3], new Array(1, 2, 3));
// true;

deepEqual(NaN, NaN);
// true;

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

Installation

$ npm install deepequal

Dependencies

API

deepEqual(a, b, strict)

  • strict - Use strict comparison (===) between primitives (Boolean, String, Number) (default: false)

About

Deep comparison of two variables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published