In JavaScript, falling off the end of a function returns undefined; if you want to return a value, you need to use an explicit return statement.
At least this was hitherto the case, but it looks like ECMAScript 6 will at least sometimes allow the return to be omitted.
In what circumstances will this be the case? Will it be related to the distinction between function and => or is there some other criterion?