1.0.0 • Published 7 years ago

fuckingundefinedemptynull v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

npm version

FuckingUndefinedEmptyNull

Detecting undefined, null, or empty strings. Eventually, I want to make this like the lonely operator equivalent (see ruby 2.3 feature) in javascript

Installation

npm i fuckingundefinedemptynull

Usage

var emptyStringCheck = require("fuckingundefinedemptynull").isStringSet;

var undefinedVariable;

if (emptyStringCheck(undefinedVariable)) {
    console.log("Variable is set");
} else {
    console.log("Variable is NOT set");
}