Yeah I was hoping es6 is closer to functional than this. The only way to get an implicit return from the last expression is a lambda function without brackets (containing a single expression).
let fun = () => 0;
fun() // will return 0
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.