(c)
| 23 | let line = '' |
| 24 | let col = 0 |
| 25 | const put = (c) => { line = line.slice(0, col) + c + line.slice(col + 1); col += 1 } |
| 26 | for (const ch of text) { |
| 27 | if (ch === '\n') { lines.push(line); line = ''; col = 0 } |
| 28 | else if (ch === '\r') { col = 0 } |
no outgoing calls
no test coverage detected