Skip to main content
Module

x/rimbu/mod.ts>Transformer.indicesWhere

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

Returns a Transformer that outputs the index of each received element that satisfies the given predicate.

Parameters

pred: (value: T) => boolean
  • a 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