Skip to content

findLast

findLast<A>(predicate): (data) => Option<A>

Defined in: Core/Arr.ts:95

Returns the last element matching the predicate, or None.

A

(a) => boolean

(data): Option<A>

readonly A[]

Option<A>

pipe([1, 2, 3, 4], Arr.findLast(n => n > 2)); // Some(4)