(boxed: any)
| 79 | catch { return null; } |
| 80 | }; |
| 81 | const numOf = (boxed: any): number | null => { |
| 82 | try { const x = reOf(boxed.N()); return isFinite(x) ? x : null; } |
| 83 | catch { return null; } |
| 84 | }; |
| 85 | |
| 86 | function 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); } |