isDef

function isDef<F>(val): val is F

Returns true if the specified value is not undefined.

Type parameters

Type parameter
F

Parameters

ParameterTypeDescription
valundefined | FVariable to test.

Returns

val is F

Whether variable is defined.