Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@essentials/are-equal

jaredLunde633MIT1.1.0TypeScript support: included

Blazing fast strict equality functions

are equal, are equal function, strict equal, strict equality, strict compare, object equality, array equality

readme


@essentials/are-equal

Bundlephobia Types NPM Version MIT License

npm i @essentials/are-equal

Blazing fast strict equality functions

Quick Start

import {areEqual, areEqualObjects, areEqualArrays} from '@essentials/are-equal'

areEqual(['a', 'b'], ['a', 'b'])
// true
areEqual(['a', {}], ['a', {}])
// false
areEqual({}, {})
// true
areEqual({a: 'b'}, {a: 'c'})
// false

LICENSE

MIT