Can I use implicit return with more than one line of code in an arrow function?


#1

Question

Can I use implicit return with more than one line of code in an arrow function?

Answer

No, implicit return only works with one line of code not wrapped in {}. If you want to use more than one line of code you’ll need {} and a return.