lib/rules/no-var.js
function hasSelfReferenceInTDZ(declarator) {
            if (!declarator.init) {
                return false;
            }
            const variables = context.getDeclaredVariables(declarator);

            return variables.some(hasReferenceInTDZ(declarator.init));
        }
function hasSelfReferenceInTDZ(declarator) {
            if (!declarator.init) {
                return false;
            }
            const variables = context.getDeclaredVariables(declarator);

            return variables.some(hasReferenceInTDZ(declarator.init));
        }
function hasSelfReferenceInTDZ ( declarator ) { if ( ! declarator . init ) { return false ; } const variables = context . getDeclaredVariables ( declarator ) ; return variables . some ( hasReferenceInTDZ ( declarator . init ) ) ; }
Checks whether the variables which are defined by the given declarator node have their references in TDZ.

@param {ASTNode} declarator - The VariableDeclarator node to check.
@returns {boolean} `true` if one of the variables which are defined by the given declarator node have their references in TDZ.
Checks whether the variables which are defined by the given declarator node have their references in TDZ .