Skip to main content
Module

x/denofun/map.ts>default

Small utility library containing functions, monads and other fun stuff.
Latest
function default
import { default } from "https://deno.land/x/denofun@v0.2.0/map.ts";

map applies a function to each element of the array, returns the array of results

Parameters

fn: (x: T) => R

function that will be applied on each element

xs: T[]

elements that function will be applied to

Returns

R[]

new array with results of the map