federation/gateway/node_modules/apollo-env/lib/utils/mapValues.js
2020-11-14 16:43:58 +01:00

11 lines
No EOL
347 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function mapValues(object, callback) {
const result = Object.create(null);
for (const [key, value] of Object.entries(object)) {
result[key] = callback(value);
}
return result;
}
exports.mapValues = mapValues;
//# sourceMappingURL=mapValues.js.map