(h: string | null | undefined)
| 1 | export const parseInteger = (h: string | null | undefined): number | null => { |
| 2 | if (!h) { |
| 3 | return null; |
| 4 | } |
| 5 | |
| 6 | const i = parseInt(h); |
| 7 | if (isNaN(i)) { |
| 8 | return null; |
| 9 | } |
| 10 | |
| 11 | return i; |
| 12 | }; |
no outgoing calls
no test coverage detected