MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / str

Function str

apps/kimi-web/src/lib/toolMeta.ts:152–154  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

150}
151
152function str(v: unknown): string | undefined {
153 return typeof v === 'string' && v.length > 0 ? v : undefined;
154}
155
156function num(v: unknown): number | undefined {
157 return typeof v === 'number' && Number.isFinite(v) ? v : undefined;

Callers 2

filePathFunction · 0.70
toolSummaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected