Is there any difference between returning a value in an arrow function, vs adding the body and typing return?
As far as I'm aware they are the same.
Here's a session:
let a = () => 1;
a()
1
let b = () => { return 1; }
b()
1
a
() => 1
b
() => { return 1; }
Is there any situation when these are different?