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

x/rimbu/core/mod.ts>Transformer.indicesOf

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

Returns a Transformer that outputs the index of each received element that is equal to the given searchValue value, according to the eq equality function.

Parameters

searchValue: T
  • the value to match input values to
optional
options: { eq?: Eq<T> | undefined; negate?: boolean | undefined; } = [UNSUPPORTED]
  • (optional) object specifying the following properties
  • eq - (default: Eq.objectIs) the equality testing function
  • negate: (default: false) when true will negate the given predicate