1.1.1 • Published 11 months ago

are-deeply-equal v1.1.1

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

Are Deeply Equal

Check if two values are deeply equal to each other.

It supports comparing primitives, Array, Map, Set, Date, RegExp, ArrayBuffer, DataView, Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, BigInt64Array, BigUint64Array, Promise, WeakMap, WeakSet, Node, plain objects, objects with a custom valueOf function, and other classes (which are treated like plain objects).

Install

npm install --save are-deeply-equal

Usage

import areDeeplyEqual from 'are-deeply-equal';

areDeeplyEqual ( [123, { value: 'foo' }], [123, { value: 'foo' }] ); // => true
areDeeplyEqual ( [true], [false] ); // => false

License

MIT © Fabio Spampinato

1.1.1

11 months ago

1.1.0

11 months ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago