MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / numOf

Function numOf

benchmarks/audit/wester.ts:81–84  ·  view source on GitHub ↗
(boxed: any)

Source from the content-addressed store, hash-verified

79 catch { return null; }
80};
81const numOf = (boxed: any): number | null => {
82 try { const x = reOf(boxed.N()); return isFinite(x) ? x : null; }
83 catch { return null; }
84};
85
86function symbolsOf(e: any, acc = new Set<string>()): Set<string> {
87 if (typeof e === 'string') { if (!(e in CONSTS) && /^[a-zA-Z][a-zA-Z0-9]*$/.test(e)) acc.add(e); }

Callers 1

runOnFunction · 0.85

Calls 3

reOfFunction · 0.85
isFiniteFunction · 0.85
NMethod · 0.65

Tested by

no test coverage detected