Skip to main content
Module

x/rimbu/core/mod.ts>AsyncTransformer.indicesWhere

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Latest
function AsyncTransformer.indicesWhere
import { AsyncTransformer } from "https://deno.land/x/rimbu@1.2.1/core/mod.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