isnull

1.0.6 • Public • Published

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
 

Readme

Keywords

Package Sidebar

Install

npm i isnull

Weekly Downloads

5

Version

1.0.6

License

none

Last publish

Collaborators

  • phiphamuet