UNPKG

@shakacode/recompose

Version:

A React utility belt for function components and higher-order components

16 lines (15 loc) 402 B
"use strict"; 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 = exports["default"] = mapValues;