Hacker News new | ask | show | jobs
by 1000hz 3544 days ago
when you include curly braces in arrow functions you lose the implicit return, so this function would return undefined
2 comments

You can get the implicit return if you use parentheses instead:

f = (a,b,c) => (a * b ^ c)

very true :)