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

Function toStrInt

dbdj/dbdj.ts:16–19  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

14 const n = Number(value);
15 return Number.isFinite(n) ? Math.trunc(n) : undefined;
16}
17
18function toStrInt(value: any): string | undefined {
19 const n = Number(value);
20 return Number.isFinite(n) ? String(Math.trunc(n)) : undefined;
21}
22

Callers 1

DbdjPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected