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