npm.io
1.0.1 • Published 4 years ago

@iterable-iterator/window

Licence
AGPL-3.0
Version
1.0.1
Deps
5
Size
442 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

@iterable-iterator/window

Iterable windowed iteration for JavaScript. See docs.

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

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

Keywords