src/index.js
function isMemberCall({ callee }, obj, prop) {
  return callee.type === 'MemberExpression'
    && callee.object.name === obj
    && callee.property.name === prop;
}
function isMemberCall({ callee }, obj, prop) {
  return callee.type === 'MemberExpression'
    && callee.object.name === obj
    && callee.property.name === prop;
}
function isMemberCall ( { callee } , obj , prop ) { return callee . type === 'MemberExpression' && callee . object . name === obj && callee . property . name === prop ; }
Determines if a given node represents a call to prop on object.
@param  {Object} node The ast node.
@param  {string} obj  The object identity.
@param  {string} prop The property identity.
@return {Boolean} `true` if node represents `obj[prop]()`. `false` otherwise.
Determines if a given node represents a call to prop on object .