MCPcopy Create free account
hub / github.com/arktypeio/arktype / isPlainFunction

Function isPlainFunction

ark/aot/flat.ts:2024–2031  ·  view source on GitHub ↗
(
	node: Node
)

Source from the content-addressed store, hash-verified

2022
2023// a function expression that neither names itself nor is async or a generator
2024const isPlainFunction = (
2025 node: Node
2026): node is Node & { type: "FunctionExpression"; body: Node } =>
2027 node.type === "FunctionExpression" &&
2028 !node.id &&
2029 !!node.body &&
2030 !node.async &&
2031 !node.generator
2032
2033interface FailingCall {
2034 callee: Span

Callers 2

declaresFunctionFunction · 0.85
functionsAsArrowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected