typedash
Version:
modern, type-safe collection of utility functions
16 lines (14 loc) • 429 B
JavaScript
import { objectEntries } from './chunk-HOKNVEWK.js';
import { objectFromEntries } from './chunk-4BFCOGGM.js';
// src/functions/mapValues/mapValues.ts
function mapValues(object, mapperFunction) {
return objectFromEntries(
objectEntries(object).map(([key, value]) => [
key,
mapperFunction(value, key)
])
);
}
export { mapValues };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-7MPZCLGE.js.map