Skip to main content
Module

x/rambda/immutable.d.ts>map

Faster and smaller alternative to Ramda
Go to Latest
function map
import { map } from "https://deno.land/x/rambda@v7.0.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[]