Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

map

import { map } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/record.ts";

Creates a new object with the same keys of ua. Values are transformed using fai.

@example
import { map } from "./record.ts"
map((n: number) => n + 1)({ a: 1 }); // { a: 2 }
function map<A, I>(fai: (a: A, i: string) => I): (ua: ReadonlyRecord<A>) => ReadonlyRecord<I>;
§
map<A, I>(fai: (a: A, i: string) => I): (ua: ReadonlyRecord<A>) => ReadonlyRecord<I>
[src]

§Type Parameters

§Parameters

§
fai: (a: A, i: string) => I
[src]

§Return Type