(streams)
| 69 | } |
| 70 | |
| 71 | function popCallback(streams) { |
| 72 | // Streams should never be an empty array. It should always contain at least |
| 73 | // a single stream. Therefore optimize for the average case instead of |
| 74 | // checking for length === 0 as well. |
| 75 | validateFunction(streams[streams.length - 1], 'streams[stream.length - 1]'); |
| 76 | return streams.pop(); |
| 77 | } |
| 78 | |
| 79 | function makeAsyncIterable(val) { |
| 80 | if (isIterable(val)) { |