Interface SlidingWindowsOptions

Options for slidingWindows.

interface SlidingWindowsOptions {
    partial?: boolean;
    step?: number;
}

Properties

Properties

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.

{false}
step?: number

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

{1}