What do the parentheses wrapping the object literal in an arrow function mean?

Viewed 6232

I've seen JavaScript code such as this:

let a = () => ({ id: 'abc', name: 'xyz' })

What do the parentheses ( … ) wrapping the object refer to in this instance? Is it a shorthand for return?

2 Answers
Related