code: function isNumeric(input) {
    return input !== undefined
      && input !== null
      && (typeof input === 'number' || parseInt(input, 10) == input);
  }
docs: Determines if the specified string consists entirely of numeric characters.