In Typescript, this shows an error saying isNaN accepts only numeric values
isNaN(\'9BX46B6A\')
and this returns false because parseF
parseF
My simple solution here is:
const isNumeric = (val: string) : boolean => { return !isNaN(Number(val)); } // isNumberic("2") => true // isNumeric("hi") => false;