During some projects I have needed to validate some data and be as certain as possible that it is javascript numerical value that can be used in mathematical operations.
isNaN function used to check the value is a numeric or not. If the values is numeric its return true else returned false.
code: