3 ms·
I've literally never used them during my 8 years of working as a JS dev. Maybe I'm doing it wrong. Edit: actually I did use .bind with React before arrow funct
by kecupochren 5y ago
I've literally never used them during my 8 years of working as a JS dev. Maybe I'm doing it wrong.
Edit: actually I did use .bind with React before arrow functions came
- hajile 5y agoUntil for..of came around, `Array.prototype.map.call($nodeList, myFn)` was pretty much the way to iterate over things that were "array-like" but didn't actually inherit from Array, so didn't have such methods.
- nicoburns 5y agoThey were pretty widely used (especially in library code) before arrow functions were added to the language.