August 17, 2017

Wrap the returning object up after arrow functions with parenthesis

const foo = (a, b, ...c) => ({ a, b, c });