Checks if a value is a Float
value
Returns true if the value is a Float
true
const result = isFloat(0.5);console.log(result); // true
Returns false if the value is not a Float
false
const result = isFloat(NaN);console.log(result); // false
true if value is a Float, otherwise false
the value to check
Generated using TypeDoc
Checks if a
valueis a FloatExample
Returns
trueif thevalueis a FloatExample
Returns
falseif thevalueis not a FloatReturns
trueifvalueis a Float, otherwisefalse