Variable: dropAsync
const
dropAsync:SubAsync
Defined in: splices.d.ts:223
Returns an async iterable containing the values of asyncIterable
in
iteration order except for the first count
values.
If the count
is greater than the number of values in asyncIterable
, then
an empty async iterable is returned.
Throws
if count
isn't a non-negative integer.
Example
console.log(
await pipe(
asAsync([1, 2, 3, 4, 5, `sloth`]),
dropAsync(3),
reduceAsync(toArray()),
),
)
//=> [ 4, 5, 'sloth' ]
Since
v0.0.1