lib/rules/prefer-rest-params.js
function isNotNormalMemberAccess(reference) {
    const id = reference.identifier;
    const parent = id.parent;

    return !(
        parent.type === "MemberExpression" &&
        parent.object === id &&
        !parent.computed
    );
}
function isNotNormalMemberAccess(reference) {
    const id = reference.identifier;
    const parent = id.parent;

    return !(
        parent.type === "MemberExpression" &&
        parent.object === id &&
        !parent.computed
    );
}
function isNotNormalMemberAccess ( reference ) { const id = reference . identifier ; const parent = id . parent ; return ! ( parent . type === "MemberExpression" && parent . object === id && ! parent . computed ) ; }
Checks if the given reference is not normal member access.

- arguments         .... true    // not member access
- arguments[i]      .... true    // computed member access
- arguments[0]      .... true    // computed member access
- arguments.length  .... false   // normal member access

@param {eslint-scope.Reference} reference - The reference to check.
@returns {boolean} `true` if the reference is not normal member access.
Checks if the given reference is not normal member access .