3 ms·
It is not the same as that. the fat arrow doesn't change the value of "this" while the function definition does.
by TheDong 9y ago
It is not the same as that. the fat arrow doesn't change the value of "this" while the function definition does.
- geoelectric 9y agoGiven that "this" isn't referenced in the function, though, it's practically equivalent.
- simlevesque 9y agoI think one is more efficient memory wise but I'm not sure which one.