isFinite
isFinite({mixed} value)
=> {bool} whether the value is finite
#global
#safe
#alternative
- better to use ES6 Number.isFinite, since it won't try and convert the value into a numbervalue
value to number or NaNisNaN
isNaN({mixed} value)
=> {bool} whether the value is NaN
#global
#safe
#dontuse
- either use `value !== value` or ES6 alternative Number.isNan()parseInt
parseInt({str} value, -{num=10} base)
=> {num} integer representation of value at base of `base`, else NaN if number can't be produced
#global
#safe BUT base default defined by ES5value
value contains character not recognized by base notation, unless the character is the first character, in which case, NaN is returnedparseFloat
parseFloat({str} value)
=> {num} decimal number representation of value
#global
#safevalue
value contains characters NOT [0-9.-+e], unless the character is the first character, in which case, NaN is returned.