allowNaN
allowNaN()
Effect
By default, number
doesn't allow the detected value to be NaN
. If you want NaN
to be allowed, you should call allowNaN
.
NOTE
If you call both
allowNaN
andrequired
, the effect is up torequired
, meansNaN
is not allowed.
Arguments
None
Example
Last updated