# isUndefined > Test if a value is undefined.
## Usage ```javascript var isUndefined = require( '@stdlib/assert/is-undefined' ); ``` #### isUndefined( value ) Tests if a `value` is `undefined`. ```javascript var bool = isUndefined( undefined ); // returns true ```
## Examples ```javascript 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 ```