• Returns whether all the characters in the given text is numeric

    Parameters

    • Optionaltext: string

      the text to check

    Returns boolean

    whether all the characters in the given text is numeric

    isNumeric(undefined);    // false
    isNumeric('abc123'); // false
    isNumeric('123456'); // true