Skip to content

dropWhile

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

Defined in: Data/Arr.ts:778

Drops elements from the start while the predicate holds.

A

(a) => boolean

(data) => readonly A[]

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