isNumber

function isNumber(val): val is number

Returns true if the specified value is a number.

Parameters

ParameterTypeDescription
valunknownVariable to test.

Returns

val is number

Whether variable is a number.