iter-fns is a set of iteration utilities that allow you to construct chains of lazy operations.
iter-fns additionally extends iterables in various opt-in ways, such as reverse iteration (via ReverseIterable) and sized iterables (via SizedIterable) where supported.
This allows certain operations to be more efficient when possible, but still abstracts over the underlying container, whether it's an array, a string, or otherwise.
iter-fns additionally guarantees that:
Array.from.If you need built in JavaScript types to support reverse iteration and sized iterables, you can import shims.