4 ms·
Which is the same as var func = function(){...}.bind(this); no es6 required.
by merpnderp 11y ago
Which is the same as var func = function(){...}.bind(this); no es6 required.
- ehynds 11y agoOP is saying that `let func = () => {};` creates a named function where func.name equals "func" and "func" appears as part of the stack trace. Your example is still an anonymous function just bound to a different context.
- gotchange 11y agoand more verbose as well which was the concern of person to whom I replied.