isVoid

function isVoid(x): x is void

Returns true if the specified value is undefined.

Parameters

ParameterType
xunknown

Returns

x is void

Whether variable is undefined.