https://github.com/iterable-iterator/window
:mountain_cableway: Iterable windowed iteration for JavaScript
https://github.com/iterable-iterator/window
Last synced: 12 months ago
JSON representation
:mountain_cableway: Iterable windowed iteration for JavaScript
- Host: GitHub
- URL: https://github.com/iterable-iterator/window
- Owner: iterable-iterator
- License: agpl-3.0
- Created: 2021-05-05T09:59:01.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-08T00:36:03.000Z (about 1 year ago)
- Last Synced: 2025-06-08T01:30:05.484Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://iterable-iterator.github.io/window
- Size: 2.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:mountain_cableway: [@iterable-iterator/window](https://iterable-iterator.github.io/window)
==
Iterable windowed iteration for JavaScript.
See [docs](https://iterable-iterator.github.io/window/index.html).
> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
import {window} from '@iterable-iterator/window';
for (const [x, y] of window(2, 'abcde')) ... ; // ab bc cd de
```
[](https://raw.githubusercontent.com/iterable-iterator/window/main/LICENSE)
[](https://www.npmjs.org/package/@iterable-iterator/window)
[](https://github.com/iterable-iterator/window/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/iterable-iterator/window/network/dependencies)
[](https://github.com/iterable-iterator/window/issues)
[](https://www.npmjs.org/package/@iterable-iterator/window)
[](https://codeclimate.com/github/iterable-iterator/window/issues)
[](https://codeclimate.com/github/iterable-iterator/window/trends/churn)
[](https://codecov.io/gh/iterable-iterator/window)
[](https://codeclimate.com/github/iterable-iterator/window/trends/technical_debt)
[](https://iterable-iterator.github.io/window/source.html)
[](https://bundlephobia.com/result?p=@iterable-iterator/window)