0.1.5 • Published 4 years ago
@geronimus/is-null v0.1.5
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 ) // => falseParameters
value any
The value to test for strict equality with null or undefined.