@hypnosphi/recompose
Version:
A React utility belt for function components and higher-order components
22 lines (16 loc) • 411 B
JavaScript
;
exports.__esModule = true;
exports.default = void 0;
var mapValues = function mapValues(obj, func) {
var result = {};
/* eslint-disable no-restricted-syntax */
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
result[key] = func(obj[key], key);
}
}
/* eslint-enable no-restricted-syntax */
return result;
};
var _default = mapValues;
exports.default = _default;