• Get an iterator over the next 'count' items of the given iterator.

    Parameters

    • iter: Iterator<any, any, undefined>
    • count: number

    Returns Generator<any, void, unknown>

    Example

    next([1, 4, 3, 6, 7, 4, 5].values(), 3);  // 1, 4, 3