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