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

x/rimbu/base/mod.ts>Arr.reverseMap

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

Parameters

array: readonly T[]
f: (value: T, index: number) => R
optional
indexOffset = [UNSUPPORTED]