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

    Parameters

    • arrayLike: any
    • index: Iterable<number>

    Returns Generator<any, void, unknown>

    Example

    const tenth = items(arr1000, range(0, 1000, 10));
    // selects every 10th item in the array.