long story short, i was trying to validate a phone field. ive added the isNaN and parseInt for checking the \" \" in the field but tha
isNaN
parseInt
\" \"
parseInt is a bit odd at times:
> parseInt("123-456-789") 123
Fortunately you can probably solve your case with:
> Number("123-456-789") NaN