August 17, 2017Wrap the returning object up after arrow functions with parenthesisconst foo = (a, b, ...c) => ({ a, b, c });