Skip to content

A tool that allows you to make the search and comparison between objects, in particular in the case of objects that contain different elements at different levels

License

zetawave/unicompare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unicompare (DISCONTINUED)

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(obj1, obj2, deep) Boolean 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(obj1, value) Boolean function( obj1: Any, value: Any ) Returns 'true' if it finds the passed value 'Value' anywhere within the 'Any' object

About

A tool that allows you to make the search and comparison between objects, in particular in the case of objects that contain different elements at different levels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published