• Checks if the input value is a valid number.

    Parameters

    • value: string

      the value to be checked

    Returns boolean

    true if the value is a valid number, otherwise false

    Example

    console.log(checkNumber('10')); // true
    console.log(checkNumber('a')); // false

Generated using TypeDoc