3 ms·
This is why we need a global Iterator / Iterable type. These are iterators at the end of the day after all. That would also signal the fact they could be used f
by no_wizard 3y ago
This is why we need a global Iterator / Iterable type. These are iterators at the end of the day after all. That would also signal the fact they could be used for more than one data structure (Array, Map, POJOs)
- bakkoting 3y agoGlobal iterator type is coming: https://github.com/tc39/proposal-iterator-helpers https://github.com/tc39/proposal-iterator-helpers But a method named `groupBy` on iterators traditionally means a different thing: https://github.com/tc39/proposal-array-grouping/issues/51#issuecomment-1372786948 https://github.com/tc39/proposal-array-grouping/issues/51#is... Global iterable type it's too late for, since there's many extant iterables in the language and on the web which don't have it in their prototype chain and can't reasonably be changed.
- deleted 3y ago[deleted]
- pharmakom 3y agoStop it please! Just add the pipleline proposal and we can use a library or define our own function.