• Returns a generator which iterates over the subset of the 'arrayLike' object that matches the provided index.

    Parameters

    • it: any
    • index: Iterable<number>

    Returns Generator<any, void, unknown>

    Example

    import { items, range } from 'deleight/generators';
    const tenth = []...items(range(1000), range(0, 1000, 10))];
    // selects every 10th item in the array.