MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / toInt

Function toInt

bs/bs.ts:97–100  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

95}
96
97function toInt(value: any): number | undefined {
98 const n = Number(value);
99 return Number.isFinite(n) ? Math.trunc(n) : undefined;
100}
101
102function toStrInt(value: any): string | undefined {
103 const n = Number(value);

Callers 2

forwardToTargetFunction · 0.70
sendTargetFeedbackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected