Babel arrow function compilation into ES5

Viewed 82

Using Babel I've noticed something a little weird.

Shouldn't const app = () => {} be equal to var app = function() {} ?

Babel returns var app = function app() {}.

1 Answers
Related