UNPKG

356 BJavaScriptView Raw
1"use strict";
2
3exports.__esModule = true;
4var mapValues = function mapValues(obj, func) {
5 var result = {};
6 /* eslint-disable no-restricted-syntax */
7 for (var key in obj) {
8 if (obj.hasOwnProperty(key)) {
9 result[key] = func(obj[key], key);
10 }
11 }
12 /* eslint-enable no-restricted-syntax */
13 return result;
14};
15
16exports.default = mapValues;
\No newline at end of file