npmwithgit
v1.0.0
Published
// Returns true if the input is either undefined, null, or empty, false otherwise
Downloads
2
Readme
npmwithgit
creating npm package, publishing with npm registry and connect to github
--package name
// Returns true if the input is either undefined, null, or empty, false otherwise
Usage
Install the package using npm :
npm install is-null-or-empty --save
Then, require the package and use it:
[Comment: To check if this usage is proper]
var isNullOrEmpty = require('is-null-or-empty');
console.log(isNullOrEmpty("")); // true
console.log(isNullOrEmpty("Hello World")); // false