isnull
v1.0.6
Published
check empty object or array
Downloads
10
Readme
isNull
Because the name empty has existed. Therefore it called isNull. It use to check empty array or empty object. You can take it as a function! :D
install
$ npm install isnull
example
var isNull = require('isnull');
var emptyObject = {};
var emptyArray = [];
var object = { "isnull": false };
var array = [ "notNull" ];
console.log(isNull(emptyObject));
// -> return true
console.log(isNull(emptyArray));
// -> return true
console.log(isNull(object));
// -> return false
console.log(isNull(array));
// -> return false