MCPcopy Create free account
hub / github.com/BuilderIO/mitosis / getFunctionString

Function getFunctionString

packages/core/src/helpers/get-function-string.ts:1–2  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

1export const getFunctionString = (code: string): string =>
2 code.startsWith('function') ? code : `function ${code}`;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…