lib/rules/no-constant-condition.js
function trackConstantConditionLoop(node) {
            if (node.test && isConstant(node.test, true)) {
                loopsInCurrentScope.add(node);
            }
        }
function trackConstantConditionLoop(node) {
            if (node.test && isConstant(node.test, true)) {
                loopsInCurrentScope.add(node);
            }
        }
function trackConstantConditionLoop ( node ) { if ( node . test && isConstant ( node . test , true ) ) { loopsInCurrentScope . add ( node ) ; } }
Tracks when the given node contains a constant condition.
@param {ASTNode} node The AST node to check.
@returns {void}
@private
Tracks when the given node contains a constant condition .