Function: isGlobalUndefinedIdentifier()
isGlobalUndefinedIdentifier<
MessageIds,Options>(context:Readonly<TSESLint.RuleContext<MessageIds,Options>>,expression:Readonly<Expression>):expression is Identifier
Defined in: _internal/typed-rule.ts:320
Determine whether an expression references the global undefined binding
(not a shadowed user-defined symbol).
Type Parametersโ
MessageIdsโ
MessageIds extends string
Optionsโ
Options extends readonly unknown[]
Parametersโ
contextโ
Readonly<TSESLint.RuleContext<MessageIds, Options>>
Rule context used for scope resolution.
expressionโ
Readonly<Expression>
Expression to inspect.
Returnsโ
expression is Identifier
true when the expression is an Identifier named undefined that
resolves to the global binding.