function isNumber(s) {
  if (typeof s !== "string" && typeof s !== "number") return false; // only process numbers and strings
  if (s === 0) return true;
  return !isNaN(s) && !isNaN(parseFloat(s));
}
/* Check if something is a number */
Check if something is a number
Check if something is a number
function isNumber(s) {
  if (typeof s !== "string" && typeof s !== "number") return false; 
  if (s === 0) return true;
  return !isNaN(s) && !isNaN(parseFloat(s));
}
function isNumber ( s ) { if ( typeof s !== "string" && typeof s !== "number" ) return false ; if ( s === 0 ) return true ; return ! isNaN ( s ) && ! isNaN ( parseFloat ( s ) ) ; }
Check if something is a number
Check if something is a number
// only process numbers and strings