MCPcopy Create free account
hub / github.com/anomalyco/models.dev / string

Function string

packages/function/src/worker.ts:191–196  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

189}
190
191function string(value: string | undefined) {
192 if (typeof value === "string") return value;
193 if (typeof value === "number" || typeof value === "boolean")
194 return String(value);
195 return undefined;
196}

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected