Drop every item from the iterator while the predicate function holds true, after that every item is emitted.
import { pipe } from "yta";import { dropWhile, toArray } from "yta/async";import { asAsync, range } from "yta/sync";await pipe( range(10), asAsync(), dropWhile((n) => n < 5), toArray(),);// => [5, 6, 7, 8, 9] Copy
import { pipe } from "yta";import { dropWhile, toArray } from "yta/async";import { asAsync, range } from "yta/sync";await pipe( range(10), asAsync(), dropWhile((n) => n < 5), toArray(),);// => [5, 6, 7, 8, 9]
See also:
The item type
The predicate function
Drop every item from the iterator while the predicate function holds true, after that every item is emitted.
See also: