1.0.0 • Published 7 years ago
fuckingundefinedemptynull v1.0.0
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");
}
1.0.0
7 years ago