0.1.0 • Published 8 years ago

neqndeq v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

neqndeq

Build Status NPM Version License

if Not EQual then should Not Deep EQual

Installation

$ install npm --save neqndeq

API

  • neqndeq(a: any, b: any): boolean

Examples

Not EQual / Not Deep EQual

const a = [ 10, 20 ];
const b = [ 10, 25 ]; // a !== b && !deepEqual(a, b)

neqndeq(a, b); // true

Not EQual / NOT (Not Deep EQual)

const a = [ 10, 20 ];
const b = [ 10, 20 ]; // a !== b && !!deepEqual(a, b)

neqndeq(a, b); // false

Not EQual / Not Deep EQual

const a = [ 10, 20, [ 30, 40 ] ];
const b = [ 10, 25, a[2] ];      // a[2] === b[2]

neqndeq(a, b); // true

Not EQual / NOT (Not Deep EQual)

const a = [ 10, 20, [ 30, 40 ] ];
const b = [ 10, 25, [ 30, 40 ] ]; // a[2] !== b[2] && !!deepEqual(a[2], b[2])

neqndeq(a, b); // false

License

MIT