writetome51 / has-value-no-value

Functions that check if argument is, or is not, undefined or null

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hasValue(arg): boolean

Returns true if arg is neither undefined or null.

noValue(arg): boolean

Returns true if arg is either undefined or null.

Installation

npm i @writetome51/has-value-no-value

Loading

import { hasValue, noValue } from '@writetome51/has-value-no-value';

About

Functions that check if argument is, or is not, undefined or null

License:MIT License


Languages

Language:JavaScript 100.0%