So after reading T.J. Crowder's answer to this question, it seems that the ES 6 spec has rules for inferring function names for anonymous functions bound to variable names. Do we still need to use named function expressions? It looks like ES6 makes it unnecessary.
Not yet. There is no fully ES 6 compliant JS environment yet. Plus we'll have to support legacy browsers for years to come. However since one of the main points of using named function expressions is that you get better stack traces on errors, when and if implementations catch up to the ES 6 spec then as long as your development environment is compliant you may be able to get by without them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With