is-exactly
v1.0.3
Published
Test the exact equality of two objects.
Downloads
16
Maintainers
Readme
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