Function isNumber

  • Check if value is Number.

    For same argument, if this function returns true, function isInteger may also return true if argument is integer number.

    For same argument, if this function returns true, functions isNil, isBoolean, isString, isArray and isObject will return false.

    Parameters

    • x: unknown

    Returns x is number