npm.io
0.2.1 • Published 8 years ago

@rognstadragnar/deep-enough-equals

Licence
MIT
Version
0.2.1
Deps
0
Size
9 kB
Vulns
0
Weekly
0
Stars
1

deep-enough-equals

When shallow is too shallow and deep is too deep

Installation

npm i @rognstadragnar/deep-enough-equals

Usage

import { deepEnoughEquals } from '@rognstadragnar/deep-enough-equals'

const thingA = { some: ['thing'] }
const thingB = { some: ['thing'] }
const thingC = { some: ['other', 'thing'] }

deepEnoughEquals(thingA, thingB)
// > true

deepEnoughEquals(thingA, thingC)
// > false

License

MIT.