Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@writetome51/has-value-no-value

writetome5121MIT2.0.0

2 functions that check if argument is undefined or null

is, not, defined, undefined, null, has, value, type-checking, type, check

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

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