Why Object Literal Returns Need Parentheses in Arrow Functions: An Explainer
The reason why an object literal must be wrapped in parentheses when returned from an arrow function, but not from a traditional function, is related to the rules for Automatic Semicolon Insertion (ASI) in JavaScript.
Read more about 馃憠馃徏Automatic Se...
gautam-balamurali.hashnode.dev2 min read