TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why in JavaScript doesn't Map have anything like .map, .reduce, etc.?

2 pointsby meeechalmost 4 years ago
Just 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?

1 comment

rauschmaalmost 4 years ago
IIRC, adding those operations was merely postponed, not rejected.<p>These are work-arounds: <a href="https:&#x2F;&#x2F;exploringjs.com&#x2F;impatient-js&#x2F;ch_maps.html#missing-map-operations" rel="nofollow">https:&#x2F;&#x2F;exploringjs.com&#x2F;impatient-js&#x2F;ch_maps.html#missing-ma...</a>
评论 #27382002 未加载