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.
function isNumber(value){return typeof value == 'number';}