ran npm run tdd
This commit is contained in:
5
test/mapKeys/mapKeys.js
Normal file
5
test/mapKeys/mapKeys.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = mapKeys = (obj, fn) =>
|
||||
Object.keys(obj).reduce((acc, k) => {
|
||||
acc[fn(obj[k], k, obj)] = obj[k];
|
||||
return acc;
|
||||
}, {});
|
||||
Reference in New Issue
Block a user