Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/stream/async/async-transformer.ts>AsyncTransformer.indicesWhere

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function AsyncTransformer.indicesWhere
import { AsyncTransformer } from "https://deno.land/x/rimbu@1.2.1/stream/async/async-transformer.ts";
const { indicesWhere } = AsyncTransformer;

Returns an AsyncTransformer that outputs the index of each received element that satisfies the given predicate.

Parameters

pred: (value: T) => MaybePromise<boolean>
  • a potentially async predicate function taking an element
optional
options: { negate?: boolean | undefined; } = [UNSUPPORTED]
  • (optional) object specifying the following properties
  • negate: (default: false) when true will negate the given predicate