When parsing integers and floats, inputs with allowed characters (as determined by isAllowedNumber), such as ------1, can be passed to the parseInt or parseFloat method. However, since the results of these methods are not checked, they can return NaN.
When parsing integers and floats, inputs with allowed characters (as determined by
isAllowedNumber
), such as------1
, can be passed to theparseInt
orparseFloat
method. However, since the results of these methods are not checked, they can returnNaN
.