Checks if a value is an Integer
value
Returns true if the value is an Integer
true
const result = isInteger(0);console.log(result); // true
Returns false if the value is not an Integer
false
const result = isInteger(0.5);console.log(result); // false
true if value is an Integer, otherwise false
the value to check
Generated using TypeDoc
Checks if a
valueis an IntegerExample
Returns
trueif thevalueis an IntegerExample
Returns
falseif thevalueis not an IntegerReturns
trueifvalueis an Integer, otherwisefalse