Travis build: 1953 [cron]
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
const renameKeys = (keysMap, obj) => Object
|
||||
.keys(obj)
|
||||
.reduce((acc, key) => ({
|
||||
const renameKeys = (keysMap, obj) =>
|
||||
Object.keys(obj).reduce(
|
||||
(acc, key) => ({
|
||||
...acc,
|
||||
...{ [keysMap[key] || key]: obj[key] }
|
||||
}), {});
|
||||
module.exports = renameKeys;
|
||||
}),
|
||||
{}
|
||||
);
|
||||
module.exports = renameKeys;
|
||||
Reference in New Issue
Block a user