effect-io-ai

Package: effect
Module: TArray

TArray.findFirstIndexWhere

Get the index of the first entry in the array matching a predicate.

Signature

declare const findFirstIndexWhere: { <A>(predicate: Predicate<A>): (self: TArray<A>) => STM.STM<Option.Option<number>>; <A>(self: TArray<A>, predicate: Predicate<A>): STM.STM<Option.Option<number>>; }

Source

Since v2.0.0