Wrap the returning object up after arrow functions with parenthesis

August 17, 2017

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

Tagged withjavascript

Questions, Comments, Suggestions? Open an Issue