4 ms·
I ran across this anecdote about how people don't know (or acknowledge?) the existence of the index argument of Array.map. This is a link to the manuscript of t
by fulafel 5y ago
I ran across this anecdote about how people don't know (or acknowledge?) the existence of the index argument of Array.map. This is a link to the manuscript of the well regarded book on JS FP techniques "Javascript Allonge". The book was linked elsewhere in these comments. The index arg is not mentioned!
https://github.com/raganwald/javascript-allonge/blob/db7c435d8b74a6177d0fc6b4f09baa9a3112283b/manuscript/markdown/References%20and%20Rebinding/recipes/map-with.md https://github.com/raganwald/javascript-allonge/blob/db7c435...