Function isNumber

  • Checks if a given value is of number type.

    Example

    isNumber(10)
    // => true

    isNumber(hello)
    // => false

    Type Parameters

    • T extends number

      The expected type of the number value.

    Parameters

    • value: unknown

      The value to be checked.

    Returns value is T

    true if the given value is of number type, false otherwise.

Generated using TypeDoc v0.24.7