Hacker News new | past | comments | ask | show | jobs | submit login

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




Until 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.


They were pretty widely used (especially in library code) before arrow functions were added to the language.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: