object in parentheses javascript code example
Example: parentheses are used to return object in javascript
() => ({ name: 'Amanda' }) // Shorthand to return an object
//that is equivalent to
() => { return { name : 'Amanda' }}
() => ({ name: 'Amanda' }) // Shorthand to return an object
//that is equivalent to
() => { return { name : 'Amanda' }}