(interval)
| 159 | const position = { value: 0 } |
| 160 | |
| 161 | function readNextNum (interval) { |
| 162 | let val = 0 |
| 163 | |
| 164 | while (position.value < interval.length) { |
| 165 | const char = interval[position.value] |
| 166 | |
| 167 | if (char >= '0' && char <= '9') { |
| 168 | val = val * 10 + +char |
| 169 | position.value++ |
| 170 | } else { |
| 171 | break |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | return val |
| 176 | } |
| 177 | |
| 178 | function parseMillisecond (interval) { |
| 179 | const previousPosition = position.value |
no outgoing calls
no test coverage detected
searching dependent graphs…