3 ms·
The most direct ES5 translation of let func = () => {} would be var func = function() {} But even in that case, func.name is going to be "".
by spamizbad 11y ago
The most direct ES5 translation of
let func = () => {}
would be
var func = function() {}
But even in that case, func.name is going to be "".
- gotchange 11y agovar func = function func() {}; That's what the Babel REPL spits when you input the « let » statement.