Remove parentheses for objectFromPairs argument

This commit is contained in:
Siarhei
2018-09-10 09:03:26 +04:00
parent 5b9fcfe537
commit e4c7f96f24
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;