Why in JavaScript doesn't Map have anything like .map, .reduce, etc.?
2 points by meeech 4 years ago | 3 commentsJust wondering if anyone has any insight (links?) or was involved in any of the discussions around Map() in JS.
Was just wondering - it seems like the general methods - map, reduce, some, etc... - would have been useful on Maps as well, so i got curious why they weren't?
- rauschma 4 years agoIIRC, adding those operations was merely postponed, not rejected.
These are work-arounds: https://exploringjs.com/impatient-js/ch_maps.html#missing-ma...
- meeech 4 years agoThanks. I was just curious about the why. i'm good with working around it.
- rauschma 4 years agoI’ve asked on Twitter: https://twitter.com/rauschma/status/1401538009212784643
- rauschma 4 years ago
- meeech 4 years ago