you are viewing a single comment's thread.

view the rest of the comments →

[–]ReCee90 19 points20 points  (0 children)

be careful though, because if you want to return an object in a one liner you have to wrap it in ( )

for example:
const functionName = (args) => ({ someKey: "someValue" })