deepequal

Deep comparison of two variables

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
deepequal
0.0.19 years ago9 years agoMinified + gzip package size for deepequal in KB

Readme

deepequal
Deep comparison of two variables Unlike deep-equal, this will also compare Buffers, Regular Expressions, and NaN (which I believe should equal NaN). ```javascript 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

- fast-apply - is-args

API

deepEqual(a, b, strict)

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