(x: unknown)
| 115 | } |
| 116 | |
| 117 | function isPositiveInt(x: unknown): x is number { |
| 118 | return typeof x === 'number' && Number.isFinite(x) && x > 0; |
| 119 | } |
| 120 | |
| 121 | function isNonNegativeInt(x: unknown): x is number { |
| 122 | return typeof x === 'number' && Number.isFinite(x) && x >= 0; |
no outgoing calls
no test coverage detected