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
function is_numeric(mixed_var) { return (typeof(mixed_var) === 'number' || typeof(mixed_var) === 'string') && mixed_var !== '' && !isNaN(mixed_var); }
Source code