scozv / algo-js

[obsoleted] has been moved to project Tango:
https://github.com/scozv/tango
GNU General Public License v3.0
2 stars 1 forks source link

improvement for numeric validation #10

Open scozv opened 10 years ago

scozv commented 10 years ago

From Algo.js of Google Code on July 31, 2013 23:13:36

we use (isNaN(x = +x)) to valid whether x is numeric value or not.

according to isNumber test, the improvement for integer validation or numeric validation should be applied.

Original issue: http://code.google.com/p/algo-js/issues/detail?id=10