MCPcopy Create free account
hub / github.com/FxEmbed/FxEmbed / pickInt

Function pickInt

packages/atmosphere/src/providers/threads/processor.ts:12–17  ·  view source on GitHub ↗
(...vals: unknown[])

Source from the content-addressed store, hash-verified

10} from '../../types/api-schemas.js';
11
12function pickInt(...vals: unknown[]): number {
13 for (const v of vals) {
14 if (typeof v === 'number' && Number.isFinite(v)) return Math.trunc(v);
15 }
16 return 0;
17}
18
19function pickFloat(...vals: unknown[]): number {
20 for (const v of vals) {

Callers 3

threadsPostToStatusFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected