The iterable object of interest.
The distance to step on each iteration. A value
of less than 1
will behave the same as a value of 1
.
An iterator which traverses the iterable step-wise.
import { stride } from '@lumino/algorithm';
let data = [1, 2, 3, 4, 5, 6];
let stream = stride(data, 2);
Array.from(stream); // [1, 3, 5];
Iterate over an iterable using a stepped increment.