/null_or_empty

A Node.js package that checks if a given string is null or empty.

Primary LanguageJavaScriptMIT LicenseMIT

null_or_empty

Node CI

A Node.js package that checks if a given string is null or empty.

Usage

First, install the package using npm:

npm install @skalwar/null_or_empty --save

Then, require the package and use it like so:

var isNullOrEmpty = require('@skalwar/null_or_empty');

console.log(isNullOrEmpty("")); // true
console.log(isNullOrEmpty(null)); // true
console.log(isNullOrEmpty(undefined)); // true

console.log(isNullOrEmpty("Hello World")); // false

License

MIT