mapValues.js 375 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.mapValues = void 0;
  4. function mapValues(object, callback) {
  5. const result = Object.create(null);
  6. for (const [key, value] of Object.entries(object)) {
  7. result[key] = callback(value);
  8. }
  9. return result;
  10. }
  11. exports.mapValues = mapValues;
  12. //# sourceMappingURL=mapValues.js.map