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

Function toInt

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

Source from the content-addressed store, hash-verified

9const mainPrefix = prefixes[0];
10
11function toInt(value: any): number | undefined {
12 const n = Number(value);
13 return Number.isFinite(n) ? Math.trunc(n) : undefined;
14}
15
16function toStrInt(value: any): string | undefined {
17 const n = Number(value);

Callers 1

DbdjPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected