Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kecupochren
on July 9, 2021
|
parent
|
context
|
favorite
| on:
How JavaScript Works: deep dive into call, apply, ...
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
on July 9, 2021
|
next
[–]
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.
nicoburns
on July 9, 2021
|
prev
[–]
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:
Edit: actually I did use .bind with React before arrow functions came