object-assert

1.0.0 • Public • Published

object-assert

A simple function for comparing two objects for equality.

initialize

node

var objectAssert = require('object-assert');

use

if (objectAssert(obj1, obj2)) {
    // objects match
} else {
    // objects don't match...
    console.log("they don't match! here's why: " + objectAssert.message);
}
objectAssert(obj1, obj2);

console.log('result: '  + objectAssert.result);  // boolean
console.log('message: ' + objectAssert.message); // string

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    94
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    94
  • 0.0.1
    2

Package Sidebar

Install

npm i object-assert

Weekly Downloads

80

Version

1.0.0

License

MIT

Last publish

Collaborators

  • silverbucket