function mapValues
mapValues<
K extends
number
| string
| symbol
,
V,
W,
>
(
object: Record<K, V>,
convert: (value: V) => W,
): Record<string, W>

Type Parameters

K extends
number
| string
| symbol

Parameters

object: Record<K, V>
convert: (value: V) => W

Return Type

Record<string, W>

Usage

import { mapValues } from "index.ts";