is-exactly

1.0.3 • Public • Published

is-exactly

Test for exact equality of two objects.

Usage

const isExactly = require('is-exactly');
 
isExactly(3, 3); // true
 
isExactly({ name: 'james' }, { name: 'james' }); // true
 
isExactly({
    name: 'James',
    age: 19,
    country: {
        name: 'United Kingdom',
        climate: 'cold'
    }
}, {
    name: 'James',
    age: 19,
    country: {
        name: 'Spain',
        climate: 'warm'
    }
}); // false

License

MIT

Package Sidebar

Install

npm i is-exactly

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jameskmonger