Skip to main content
Module

x/rimbu/mod.ts>Transformer.indicesOf

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