I need to check whether justPrices[i].substr(commapos+2,1).
justPrices[i].substr(commapos+2,1)
The string is something like: \"blabla,120\"
In this case it would check whether \'0
var Is = { character: { number: (function() { // Only computed once var zero = "0".charCodeAt(0), nine = "9".charCodeAt(0); return function(c) { return (c = c.charCodeAt(0)) >= zero && c <= nine; } })() } };