Wait, what? I write JS daily and I still thought an arrow function was just syntactic sugar for a regular function, and behaviorally identical. Wild.
I guess my habit of basically-never passing ’this’ into nested functions (and explicitly using .bind or .call every time when I need to control ‘this’) has been more beneficial than I knew.
Wait, what? I write JS daily and I still thought an arrow function was just syntactic sugar for a regular function, and behaviorally identical. Wild.
I guess my habit of basically-never passing ’this’ into nested functions (and explicitly using .bind or .call every time when I need to control ‘this’) has been more beneficial than I knew.