UNPKG

eslint-plugin-unicorn

Version:
13 lines (10 loc) 271 B
'use strict'; const isMethodNamed = (node, name) => { return ( node.type === 'CallExpression' && node.callee.type === 'MemberExpression' && node.callee.property.type === 'Identifier' && node.callee.property.name === name ); }; module.exports = isMethodNamed;