Skip to content

checks for matching object/keys, depricated by ArtskydJ and removed from Github. creating new repo to deal with legacy dependency

Notifications You must be signed in to change notification settings

iwtsolutions/objects-equal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

objects-equal

Build Status

##Install npm install objects-equal

##Require var areEqual = require('objects-equal')

##Examples

areEqual( {hi: 4, no: 2},   {hi: 4, no: 2} ) // -> true, Exact objects
areEqual( {hi: 4, no: 2},   {no: 2, hi: 4} ) // -> true, Properties out of order
areEqual( {hi: 4, sad: 0},   {hi: 4} )       // -> false, Extra property in first object
areEqual( {hi: 4},   {hi: 4, sad: 0} )       // -> false, Extra property in second object
areEqual( {},   {} )                         // -> true, Empty objects
areEqual( {um: 1},   {um: 3} )               // -> false, Different values inside a property
areEqual( {hi: {no: 2}},   {hi: {no: 2}} )   // -> true, Deeper search, exact objects
areEqual( {hi: {no: 2}},   {hi: {no: 3}} )   // -> false, Deeper search, different property value

##License

MIT

About

checks for matching object/keys, depricated by ArtskydJ and removed from Github. creating new repo to deal with legacy dependency

Resources

Stars

Watchers

Forks

Packages

No packages published