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

Function num

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

Source from the content-addressed store, hash-verified

154}
155
156function num(v: unknown): number | undefined {
157 return typeof v === 'number' && Number.isFinite(v) ? v : undefined;
158}
159
160/** Reduce a URL to "host[/first-segment]" for a compact fetch summary. */
161function urlHost(url: string): string {

Callers 1

toolSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected