Liang Kui
Liang Kui
https://github.com/berwin/time-slicing/blob/f75cf7ab247b9882e5517e3f9fd32247f19b12b3/index.js#L8-L10 As the code shows, ts function just runs the user's function `gen.next()`, but don't compute its time cost. So if `gen.next()` spends too much time, it still blocks the...
### Environment - Node: v18.16.1 - Jiti: 1.20.0 ### Reproduction ```ts if (import.meta.vitest) {} ``` ### Describe the bug I'm using vitest with [insource testing](https://vitest.dev/guide/in-source.html), it uses a specific variable...
```ts import iterate from 'iterare' iterate([1,2,3,4]) .skip(1) .take(2) .toArray() // [2, 3] ```