dropAsync
dropAsync<
T>(iterable,count):AsyncIterableIterator<T>
Defined in: packages/core/src/iterable/async/drop.ts:17
Yields everything after the first count elements.
The async counterpart of drop. An input shorter than count yields
nothing.
Time complexity: O(n) — the skipped elements are still pulled from the source, because an iterable offers no way to seek past them.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”iterable
Section titled “iterable”The input iterable, sync or async.
number
How many elements to skip. Must be a non-negative integer.
Returns
Section titled “Returns”AsyncIterableIterator<T>
An iterator over the remaining elements.
Throws
Section titled “Throws”If count is not a non-negative integer.