Checks if a given value is a number.
This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to number
.
Optional
value: unknownThe value to check if it is a number.
Returns true
if value
is a number, else false
.
Alias