isInfinite

function isInfinite(val): val is number

Returns true if the specified value is either positive or negative infinity.

Parameters

ParameterTypeDescription
valunknownVariable to test.

Returns

val is number

Whether variable is positive or negative infinity.