Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 

README.md

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

Releases

No releases published

Packages

No packages published