Skip to content

iterable-iterator/window

Folders and files

NameName
Last commit message
Last commit date
Mar 8, 2025
May 5, 2021
Jul 15, 2021
Feb 27, 2024
Feb 27, 2024
May 5, 2021
Jul 15, 2021
May 5, 2021
Feb 27, 2024
May 5, 2021
May 5, 2021
Feb 27, 2024
May 3, 2025
May 5, 2021
May 5, 2021
May 3, 2025

Repository files navigation

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 GitHub issues Downloads

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