isUndefined

function isUndefined(val): val is undefined

Returns true if the specified value is undefined.

Parameters

ParameterTypeDescription
valunknownVariable to test.

Returns

val is undefined

Whether variable is undefined.