Checks if a given value can be parsed as a finite number.
This function attempts to coerce the provided value into a number using parseAsNumber
and then determines if the result is both finite and of type number.
It filters out NaN, Infinity, -Infinity, and non-numeric types.
Parameters
value: any
The value to be checked.
Returns boolean
true if the value can be parsed as a finite number, false otherwise.
Checks if a given value can be parsed as a finite number.
This function attempts to coerce the provided value into a number using
parseAsNumber
and then determines if the result is both finite and of typenumber
. It filters outNaN
,Infinity
,-Infinity
, and non-numeric types.