If we're just writing a normal, ordinary function, what benefit does
const myFunction = () => { doStuff; }
have over
function myFunction() { doStuff; }
assuming the function doesn't invoke this?
To put it another way - other than using shiny new features for the sake of using shiny new features (which is, honestly, the sort of thing I would do), why change how you write ordinary functions?
20
u/ajacksified Apr 01 '17
() => 'welcome to the future'