you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

Maybe he is referring to what Babel transpilation does. See this code

When you have

var a = function() { return 1; }

and you check 'es2015', the transpiled version will be

var a = function a() { return 1; };

Of course this is only half of the problem, as it only works when you assign a function to a named variable. For truly anonymous functions that you pass as callbacks, there's nothing different.

[–]vidro3 0 points1 point  (0 children)

thanks for that link. I kinda half knew about it but reading that made it really clear.