@geronimus/is-null

0.1.5 • Public • Published

isNull( value )

Tests a value for strict equality with null and undefined, and returns true if the value is equal with either.

Examples

const isNull = require( "@geronimus/is-null" );

isNull( null ) // => true
isNull( undefined ) // => true
isNull( {} ) // => false
isNull( [] ) // => false
isNull( 0 ) // => false
isNull( false ) // => false

Parameters

value any

The value to test for strict equality with null or undefined.

Readme

Keywords

none

Package Sidebar

Install

npm i @geronimus/is-null

Weekly Downloads

2

Version

0.1.5

License

BSD-2-Clause

Unpacked Size

2.75 kB

Total Files

4

Last publish

Collaborators

  • geronimus