(value: any)
| 95 | } |
| 96 | |
| 97 | function toInt(value: any): number | undefined { |
| 98 | const n = Number(value); |
| 99 | return Number.isFinite(n) ? Math.trunc(n) : undefined; |
| 100 | } |
| 101 | |
| 102 | function toStrInt(value: any): string | undefined { |
| 103 | const n = Number(value); |
no outgoing calls
no test coverage detected