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