1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = mapObject;
|
7 | function mapObject(object, mapper) {
|
8 | return Object.keys(object).reduce(function (result, key) {
|
9 | result[key] = mapper(object[key], key);
|
10 | return result;
|
11 | }, {});
|
12 | } |
\ | No newline at end of file |