SlidingWindowsOptions

import { SlidingWindowsOptions } from "jsr:@ende/collections";

interface

interface SlidingWindowsOptions

Options for slidingWindows.

Properties

step

step?: number

If step is set, each window will start that many elements after the last window's start.

Default: 1

partial

partial?: boolean

If partial is set, windows will be generated for the last elements of the collection, resulting in some undefined values if size is greater than 1.

Default: false

Source