Skip to content

nolim1t/FuckingUndefinedEmptyNull

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");
}

About

Detecting undefined, null, or empty strings. Mostly used for creating a better backend API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published