src/util/astUtil.js
function isBinaryExpWithMemberOf(operator, exp, objectName, {maxLength, allowComputed, onlyLiterals} = {}) {
    if (!_.isMatch(exp, {type: 'BinaryExpression', operator})) {
        return false
    }
    const [left, right] = [exp.left, exp.right].map(side => isMemberExpOf(side, objectName, {maxLength, allowComputed}))
    return (left === !right) && (!onlyLiterals || isLiteral(exp.left) || isLiteral(exp.right))
}
function isBinaryExpWithMemberOf(operator, exp, objectName, {maxLength, allowComputed, onlyLiterals} = {}) {
    if (!_.isMatch(exp, {type: 'BinaryExpression', operator})) {
        return false
    }
    const [left, right] = [exp.left, exp.right].map(side => isMemberExpOf(side, objectName, {maxLength, allowComputed}))
    return (left === !right) && (!onlyLiterals || isLiteral(exp.left) || isLiteral(exp.right))
}
function isBinaryExpWithMemberOf ( operator , exp , objectName , { maxLength , allowComputed , onlyLiterals } = { } ) { if ( ! _ . isMatch ( exp , { type : 'BinaryExpression' , operator } ) ) { return false } const [ left , right ] = [ exp . left , exp . right ] . map ( side => isMemberExpOf ( side , objectName , { maxLength , allowComputed } ) ) return ( left === ! right ) && ( ! onlyLiterals || isLiteral ( exp . left ) || isLiteral ( exp . right ) ) }
Returns whether the expression specified is a binary expression with the specified operator and one of its sides is a member expression of the specified object name
@param {string} operator
@param {Object} exp
@param {string} objectName
@param {number} maxLength
@param {boolean} allowComputed
@param {boolean} onlyLiterals
@returns {boolean|undefined}
Returns whether the expression specified is a binary expression with the specified operator and one of its sides is a member expression of the specified object name