mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-04-20 12:28:08 +00:00
9 lines
205 B
TypeScript
9 lines
205 B
TypeScript
export default function checkIsIIFE(path: any) {
|
|
return (
|
|
path.value &&
|
|
path.value.callee &&
|
|
path.value.callee.type === 'FunctionExpression' &&
|
|
path.node.type === 'CallExpression'
|
|
);
|
|
}
|