unicompare

1.0.5 • Public • Published

unicompare

npm

Universal comparator for javascript with recursive and deep support

Quick start

1 - Install

# npm
npm install unicompare

2 - Import

const unicompare = require('unicompare')
...

Methods

Name Type Description
objEqual Boolean function(obj1,obj2,deep) return true if the objects obj1 and obj2 are the same, pass deep = true if you want to perform a recursive search on any objects inside the root object
some Boolean function(obj1: Any,value: Any) Returns 'true' if it finds the passed value 'Value' anywhere within the 'Any' object

Package Sidebar

Install

npm i unicompare

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

9.09 kB

Total Files

10

Last publish

Collaborators

  • zetawave