@iterable-iterator/window
v1.0.1
Published
Iterable windowed iteration for JavaScript
Downloads
249
Readme
:mountain_cableway: @iterable-iterator/window
Iterable windowed iteration for JavaScript. See docs.
:warning: Depending on your environment, the code may require
regeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import {window} from '@iterable-iterator/window';
for (const [x, y] of window(2, 'abcde')) ... ; // ab bc cd de