@bemoje/is-null

Returns true of value 'v' is null.

Usage no npm install needed!

<script type="module">
  import bemojeIsNull from 'https://cdn.skypack.dev/@bemoje/is-null';
</script>

README

@bemoje/is-null

Returns true of value 'v' is null.

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/is-null
npm install --save @bemoje/is-null
npm install --save-dev @bemoje/is-null

Usage

import isNull from '@bemoje/is-null'

isNull(null)
//=> true

isNull('null')
//=> false

isNull(void 0)
//=> false

isNull(undefined)
//=> false

isNull()
//=> false

isNull('undefined')
//=> false

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

isNull

Returns

true of value 'v' is null.

Parameters
  • value any The value to evaluate
Returns

boolean