Skip to content

dropWhile

dropWhile<A>(predicate): (data) => readonly A[]

Defined in: Core/Arr.ts:521

Drops elements from the start while the predicate holds.

A

(a) => boolean

(data): readonly A[]

readonly A[]

readonly A[]

pipe([1, 2, 3, 1], Arr.dropWhile(n => n < 3)); // [3, 1]