Test if a value is null.
var isNull = require( '@stdlib/utils/is-null' );
Tests if a value
is null
.
var bool = isNull( null );
// returns true
var isNull = require( '@stdlib/utils/is-null' );
bool = isNull( null );
// returns true
bool = isNull( 'beep' );
// returns false
bool = isNull( 5 );
// returns false
bool = isNull( void 0 );
// returns false
bool = isNull( true );
// returns false
bool = isNull( {} );
// returns false
bool = isNull( [] );
// returns false
bool = isNull( function foo() {} );
// returns false