NfNitLoop ("Cody Casterline 🏳️🌈") wrote:
@collinsworth JavaScript's functional chaining is a bit lackluster compared to other languages, so I wrote a little library called better-iterators.
It makes *this* case a bit more verbose. But there are many other cases that are a lot easier to do with it than these idioms.
Another benefit, range() is lazy, so no array allocation! (please ignore all the generators behind the curtain. 😆 )