@geronimus/is-null
v0.1.5
Published
Tests values for strict equality with null or undefined.
Downloads
3
Readme
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
.