UNPKG

typedash

Version:

modern, type-safe collection of utility functions

21 lines (17 loc) 520 B
'use strict'; // src/functions/objectEntries/objectEntries.ts var objectEntries = Object.entries; // src/functions/objectFromEntries/objectFromEntries.ts var objectFromEntries = Object.fromEntries; // src/functions/mapValues/mapValues.ts function mapValues(object, mapperFunction) { return objectFromEntries( objectEntries(object).map(([key, value]) => [ key, mapperFunction(value, key) ]) ); } exports.mapValues = mapValues; //# sourceMappingURL=out.js.map //# sourceMappingURL=index.cjs.map