MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / BigIntSafe

Function BigIntSafe

src/utils/misc.utils.ts:43–50  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

41
42// Convert a value to a BigInt, or return null if it fails
43export function BigIntSafe(value: any) {
44 try {
45 return BigInt(value);
46 }
47 catch {
48 return null;
49 }
50}

Callers 1

describeTableFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected