lib/rules/no-prototype-builtins.js
function disallowBuiltIns(node) {
            if (node.callee.type !== "MemberExpression" || node.callee.computed) {
                return;
            }
            const propName = node.callee.property.name;

            if (DISALLOWED_PROPS.indexOf(propName) > -1) {
                context.report({
                    message: "Do not access Object.prototype method '{{prop}}' from target object.",
                    loc: node.callee.property.loc.start,
                    data: { prop: propName },
                    node
                });
            }
        }
function disallowBuiltIns(node) {
            if (node.callee.type !== "MemberExpression" || node.callee.computed) {
                return;
            }
            const propName = node.callee.property.name;

            if (DISALLOWED_PROPS.indexOf(propName) > -1) {
                context.report({
                    message: "Do not access Object.prototype method '{{prop}}' from target object.",
                    loc: node.callee.property.loc.start,
                    data: { prop: propName },
                    node
                });
            }
        }
function disallowBuiltIns ( node ) { if ( node . callee . type !== "MemberExpression" || node . callee . computed ) { return ; } const propName = node . callee . property . name ; if ( DISALLOWED_PROPS . indexOf ( propName ) > - 1 ) { context . report ( { message : "Do not access Object.prototype method '{{prop}}' from target object." , loc : node . callee . property . loc . start , data : { prop : propName } , node } ) ; } }
Reports if a disallowed property is used in a CallExpression
@param {ASTNode} node The CallExpression node.
@returns {void}
Reports if a disallowed property is used in a CallExpression