Skip to content

Latest commit

 

History

History

is-undefined

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

isUndefined

Test if a value is undefined.

Usage

var isUndefined = require( '@stdlib/assert/is-undefined' );

isUndefined( value )

Tests if a value is undefined.

var bool = isUndefined( undefined );
// returns true

Examples

var isUndefined = require( '@stdlib/assert/is-undefined' );

var bool;
var x;

bool = isUndefined( x );
// returns true

bool = isUndefined( undefined );
// returns true

bool = isUndefined( void 0 );
// returns true

bool = isUndefined( 'beep' );
// returns false

bool = isUndefined( 5 );
// returns false

bool = isUndefined( null );
// returns false

bool = isUndefined( true );
// returns false

bool = isUndefined( {} );
// returns false

bool = isUndefined( [] );
// returns false

bool = isUndefined( function foo() {} );
// returns false

See Also