Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/objectFromPairs/objectFromPairs.js
Normal file
2
test/objectFromPairs/objectFromPairs.js
Normal file
@ -0,0 +1,2 @@
|
||||
const objectFromPairs = arr => arr.reduce((a, v) => ((a[v[0]] = v[1]), a), {
|
||||
module.exports = objectFromPairs;
|
||||
Reference in New Issue
Block a user