@barryels/is-null-or-empty
v0.1.0
Published
A simple null, undefined or empty string checker
Downloads
1
Readme
is-null-or-empty
A simple null, undefined or empty string checker.
Mostly using this project to test out tape, covert and npm scoped publishing
Usage
First, install the package using npm:
npm install is-null-or-empty --save
Then, require the package and use it like so:
var isNullOrEmpty = require('is-null-or-empty');
console.log(isNullOrEmpty("")); // true
console.log(isNullOrEmpty(null)); // true
console.log(isNullOrEmpty(undefined)); // true
console.log(isNullOrEmpty("Hello World")); // false