(asyncIterable, lines = [])
| 6 | import {foobarString} from './input.js'; |
| 7 | |
| 8 | export const arrayFromAsync = async (asyncIterable, lines = []) => { |
| 9 | for await (const line of asyncIterable) { |
| 10 | lines.push(line); |
| 11 | } |
| 12 | |
| 13 | return lines; |
| 14 | }; |
| 15 | |
| 16 | export const finishedStream = stream => finished(stream, {cleanup: true}); |
| 17 |
no outgoing calls
no test coverage detected