is-object-empty
v2.0.1
Published
Check to see if an object is empty (has keys)
Downloads
14
Readme
is-object-empty
Check to see if an object is empty (has no keys)
install
npm install is-object-empty
usage
var isObjectEmpty = require('is-object-empty');
var obj = {};
if (isObjectEmpty(obj)) {
console.log('yup, it is empty');
}
else {
console.log('nope, it is not empty');
}
license
MIT