UNPKG

typescript-immutable-utils

Version:

Type-safe immutability helpers for simple objects and arrays

7 lines (6 loc) 189 B
export function mapValues(src, map) { return new Map(Array.from(src.entries(), function (_a) { var key = _a[0], value = _a[1]; return [key, map(value, key)]; })); }