Add parentheses for objectFromPairs argument
This commit is contained in:
@ -1,2 +1,2 @@
|
||||
const objectFromPairs = arr => arr.reduce((a, [key, val]) => ((a[key] = val), a), {});
|
||||
const objectFromPairs = (arr) => arr.reduce((a, [key, val]) => ((a[key] = val), a), {});
|
||||
module.exports = objectFromPairs;
|
||||
|
||||
Reference in New Issue
Block a user