securityos/node_modules/eslint-plugin-unicorn/rules/utils/is-method-named.js

10 lines
249 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'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;