UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

11 lines (10 loc) 267 B
/** * Sliding window with overlap. * @author @dailker * @template T * @param {T[]} array * @param {number} size * @param {number} [step=1] * @returns {T[][]} */ export declare function slideWindow<T>(array: T[], size: number, step?: number): T[][];