There is lots of answers for that question on SO but none for javascript...
How can I check if first 16 characters of this sting 20130203003002od is a number? Meaning that the substring doesn't contains any letters nor any other characters but digits?
isNaN(value)function. But this comment was removed any idea why?isNaN('0xf'), for example will returnfalse(meaning it is a number) and that isn't what the asker wanted sincexandfaren't digits.