0.1.5 • Published 4 years ago

@geronimus/is-null v0.1.5

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
4 years ago

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.