502 Views
Why you might accidentally get an undefined value returned from a function when trying to return an object literal. Do you know the what is returned from the following? Here's a hint: The issue with the arrow function is that the parser doesn't interpret the two braces as an object literal, but as a block statement.
0 comments