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

x/rambda/immutable.d.ts>map

Faster and smaller alternative to Ramda
Latest
function map
import { map } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

It returns the result of looping through iterable with fn.

It works with both array and object.

Parameters

fn: Iterator<T, U>
iterable: readonly T[]

Returns

readonly U[]

Returns

(iterable: readonly T[]) => readonly U[]

Returns

(iterable: readonly T[]) => readonly T[]

Parameters

fn: Iterator<T, T>
iterable: readonly T[]

Returns

readonly T[]