Function isNumeric

  • Checks if a string contains only numeric characters.

    Returns

    Returns true if the string contains only numeric.

    Example

    isNumeric('alpha1234')
    // false

    isNumeric('1234')
    // true

    Parameters

    • s: string

      The string

    Returns boolean

Generated using TypeDoc