News for hackers. Stuff that matters.
Re:Greppability is an underrated code metric by bobbylarrybobby on Tuesday September 03, 2024 @09:17PM (#41440947)
Functions and arrow functions have an important difference: arrow functions do not create their own `this`. If you're in a context where a nested function needs to maintain access to the outer function’s `this`, and you don't want to muck with `bind` or `call`, then you need an arrow function.

There are no comments on this comment yet.