Function isNil

  • Check if value is null or undefined.

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

    Parameters

    • x: unknown

    Returns x is undefined | null