Function isNumber

  • Checks if the given value is a number.

    Parameters

    • val: unknown

      The value to be checked.

    Returns val is number

    Returns true if the value is a number, false otherwise.