Function isNumeric

  • Returns a boolean value denoting whether the input string is numeric

    Example

    Returns true

    isNumeric("123456789");
    

    Example

    Returns false

    isNumeric("foo123");
    

    Parameters

    • str: string

    Returns boolean

Generated using TypeDoc