lib/rules/no-extra-parens.js
function doesMemberExpressionContainCallExpression(node) {
            let currentNode = node.object;
            let currentNodeType = node.object.type;

            while (currentNodeType === "MemberExpression") {
                currentNode = currentNode.object;
                currentNodeType = currentNode.type;
            }

            return currentNodeType === "CallExpression";
        }
function doesMemberExpressionContainCallExpression(node) {
            let currentNode = node.object;
            let currentNodeType = node.object.type;

            while (currentNodeType === "MemberExpression") {
                currentNode = currentNode.object;
                currentNodeType = currentNode.type;
            }

            return currentNodeType === "CallExpression";
        }
function doesMemberExpressionContainCallExpression ( node ) { let currentNode = node . object ; let currentNodeType = node . object . type ; while ( currentNodeType === "MemberExpression" ) { currentNode = currentNode . object ; currentNodeType = currentNode . type ; } return currentNodeType === "CallExpression" ; }
Check if a member expression contains a call expression
@param {ASTNode} node MemberExpression node to evaluate
@returns {boolean} true if found, false if not
Check if a member expression contains a call expression