- slice<V>(it, start?, end?): AsyncGenerator<V>
Parameters
- it: AsyncIterable<V>
Optional
start: numberOptional
end: number
Returns AsyncGenerator<V>
- slice<V>(it, start?, end?): Generator<V>
Parameters
- it: Iterable<V> | V[]
Optional
start: numberOptional
end: number
Returns Generator<V>
Returns a section from an iterable.
'end' is the end index, not the number of items.
Param: it
Iterable
Param: start
Start step
Param: end
Exclusive end step (or until completion)