Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nolim1t/fuckingundefinedemptynull
Detecting undefined, null, or empty strings. Mostly used for creating a better backend API
https://github.com/nolim1t/fuckingundefinedemptynull
bs javascript library random
Last synced: 2 days ago
JSON representation
Detecting undefined, null, or empty strings. Mostly used for creating a better backend API
- Host: GitHub
- URL: https://github.com/nolim1t/fuckingundefinedemptynull
- Owner: nolim1t
- Created: 2017-03-29T05:53:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T15:00:58.000Z (over 7 years ago)
- Last Synced: 2024-09-06T09:42:35.464Z (2 months ago)
- Topics: bs, javascript, library, random
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![npm version](https://badge.fury.io/js/fuckingundefinedemptynull.svg)](https://badge.fury.io/js/fuckingundefinedemptynull)
# 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
```bash
npm i fuckingundefinedemptynull
```## Usage
```javascript
var emptyStringCheck = require("fuckingundefinedemptynull").isStringSet;var undefinedVariable;
if (emptyStringCheck(undefinedVariable)) {
console.log("Variable is set");
} else {
console.log("Variable is NOT set");
}
```