10 lines
249 B
JavaScript
10 lines
249 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const isMethodNamed = (node, name) =>
|
||
|
node.type === 'CallExpression'
|
||
|
&& node.callee.type === 'MemberExpression'
|
||
|
&& node.callee.property.type === 'Identifier'
|
||
|
&& node.callee.property.name === name;
|
||
|
|
||
|
module.exports = isMethodNamed;
|