Add parentheses for objectFromPairs argument

This commit is contained in:
Siarhei
2018-09-08 11:59:01 +04:00
parent 3fee874519
commit 5b9fcfe537
2 changed files with 2 additions and 2 deletions

View File

@ -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;