/** * Determine if the array contains a value satisfying a predicate. * * @tsplus static effect/core/stm/TArray.Aspects exists * @tsplus pipeable effect/core/stm/TArray exists */ export function exists(f: Predicate) { return (self: TArray): STM => self .find(f) .map((option) => option.isSome()) }