allowInfinity
allowInfinity()
Effect
This is similar to allowNaN
. By default, number
doesn't allow the detected value to be Infinity
. If you want Infinity
to be allowed, you should call allowInfinity
.
Arguments
None
Example
Last updated