Function isInteger

  • Check if value is Integer.

    For same argument, if this function returns true, function isNumber will also return true.

    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