Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/writetome51/has-value-no-value

Functions that check if argument is, or is not, undefined or null
https://github.com/writetome51/has-value-no-value

is javascript null type-check undefined value

Last synced: about 16 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
```js
import { hasValue, noValue } from '@writetome51/has-value-no-value';
```