The new ES6 arrow functions say return
is implicit under some circumstances:
The expression is also the implicit return value of that function.
In what cases do I need to use return
with ES6 arrow functions?
The new ES6 arrow functions say return
is implicit under some circumstances:
The expression is also the implicit return value of that function.
In what cases do I need to use return
with ES6 arrow functions?