Skip to content

⬅️ Back to Table of Contents

📄 isUndefinedIdentifier

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 2

📚 Table of Contents

🛠️ File Location:

📂 packages/eslint-plugin/src/util/isUndefinedIdentifier.ts

📦 Imports

Name Source
TSESTree @typescript-eslint/utils
AST_NODE_TYPES @typescript-eslint/utils

Functions

isUndefinedIdentifier(i: TSESTree.Node): boolean

Parameters:

  • i TSESTree.Node

Returns: boolean

Code
export function isUndefinedIdentifier(i: TSESTree.Node): boolean {
  return i.type === AST_NODE_TYPES.Identifier && i.name === 'undefined';
}

Generated by Syntax Scribe