Function isNumeric

  • returns true if the given string contains a numeric integer or float value

    Parameters

    • str: string

      the string to be tested

    Returns boolean

    true if string contains only digits