You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
411 B

  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = void 0;
  4. var 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. var _default = mapValues;
  16. exports.default = _default;