isInt

function isInt(val): val is number

Returns true if the specified value is an integer.

Parameters

ParameterTypeDescription
valunknownVariable to test.

Returns

val is number

Whether variable is an integer.