(str: string)
| 521 | } |
| 522 | |
| 523 | export function parseHexOrDecInt(str: string): number { |
| 524 | return str.startsWith('0x') ? parseInt(str.substring(2), 16) : parseInt(str, 10); |
| 525 | } |
| 526 | |
| 527 | export function toStringDecHexOctBin(val: number/* should be an integer*/): string { |
| 528 | if (Number.isNaN(val)) { |
no outgoing calls
no test coverage detected