News for hackers. Stuff that matters.
Re:How JavaScript Works: deep dive into call, apply, and bind by kecupochren on Friday July 09, 2021 @05:53PM (#27788955)
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

Re:How JavaScript Works: deep dive into call, apply, and bind by hajile on Friday July 09, 2021 @06:19PM (#27789155)
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.
Re:How JavaScript Works: deep dive into call, apply, and bind by nicoburns on Friday July 09, 2021 @06:33PM (#27789267)
They were pretty widely used (especially in library code) before arrow functions were added to the language.