@rognstadragnar/deep-enough-equals
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @rognstadragnar/deep-enough-equals

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

8.73 kB

Total Files

16

Last publish

Collaborators

  • rognstadragnar