@writetome51/has-value-no-value

2 functions that check if argument is undefined or null

Usage no npm install needed!

<script type="module">
  import writetome51HasValueNoValue from 'https://cdn.skypack.dev/@writetome51/has-value-no-value';
</script>

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';