Skip to main content
Module

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

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

Parameters

arr: readonly T[]
f: (value: T, index: number) => T2