(chunk, controller)
| 11 | constructor() { |
| 12 | super({ |
| 13 | transform(chunk, controller) { |
| 14 | const i = Math.floor(Math.random() * chunk.length); |
| 15 | controller.enqueue(chunk.slice(0, i) as T); |
| 16 | controller.enqueue(chunk.slice(i) as T); |
| 17 | }, |
| 18 | }); |
| 19 | } |
| 20 | } |