sfcode
An Online Competing and Development Environment
|
number primitive
Restricted number coercion. Returns number presentation for every value that follows below constraints
null
nor undefined
NaN
and doesn't coerce to NaN
For all other values null
is returned
If given argument is a number coercible value (via number/coerce
) returns result number. Otherwise TypeError
is thrown.