Skip to content

The open alternative to Salesforce, designed for AI.

260 B
Raw Blame
export const getCalledMethodName = (callee: any): string | undefined => {
  if (callee?.type !== 'MemberExpression' || callee.computed) {
    return undefined;
  }

  return callee.property?.type === 'Identifier'
    ? callee.property.name
    : undefined;
};