# \[scrapped\]

**URL:** <https://es.discourse.group/t/scrapped/2540>\
**Category:** 💡 Ideas\
**Created:** [April 16, 2026, 8:37am UTC](https://es.discourse.group/t/scrapped/2540 "2026-04-16T08:37:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jingcong](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@Jingcong](https://es.discourse.group/u/Jingcong)\
**Post date:** [April 16, 2026, 8:37am UTC](https://es.discourse.group/t/scrapped/2540/1 "2026-04-16T08:37:49Z")

</div>

[this one is scrapped. Please visit the new version at:

> [@Map and set getters to give a way to get an item at an order](https://es.discourse.group/t/map-and-set-getters-to-give-a-way-to-get-an-item-at-an-order/2541):
>
> Map.prototype.at() & Set.prototype.at() Stage: 0 (with a dream) Author: Someone tired of converting Maps to arrays Help wanted: Champion, spec writers, emotional support The Pitch Arrays and strings got .at() in ES2022. Negative indices. Clean syntax. No more arr[arr.length - 1] nonsense. Maps and Sets are ordered too. They deserve the same dignity. The Problem (with evidence) const users = new Map([[1, 'Alice'], [2, 'Bob'], [3, 'Charlie'] ]); // Current state of affairs (all terri…

]

---

<div class="post-metadata">

**Author:** ![aclaymore](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/aclaymore/32/501_2.png) [@aclaymore](https://es.discourse.group/u/aclaymore)\
**Post date:** [April 16, 2026, 8:51am UTC](https://es.discourse.group/t/scrapped/2540/2 "2026-04-16T08:51:24Z")

</div>

> [@Method to access the \`nth\` inserted element in a map](https://es.discourse.group/t/method-to-access-the-nth-inserted-element-in-a-map/1925):
>
> For example: const map = new Map(); map.set(1, 2); map.set(3, 4); console.log(map.nth(1)); // [3, 4] Preserved insertion order is a handy feature of Maps. It makes them more useful for building caches with eviction policies. For example, you can build an LRU cache by deleting and re-inserting items when they are accessed. While implementing the SIEVE algorithm in JS, I noticed that an .nth() method would be handy. Without it, I need to track insertion order in a seperate array, OR copy the ke…

---

<div class="post-metadata">

**Author:** ![Jingcong](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@Jingcong](https://es.discourse.group/u/Jingcong)\
**Post date:** [April 16, 2026, 9:44am UTC](https://es.discourse.group/t/scrapped/2540/3 "2026-04-16T09:44:22Z")

</div>

Check the new version/api at [Map and set getters to give a way to get an item at an order](https://es.discourse.group/t/map-and-set-getters-to-give-a-way-to-get-an-item-at-an-order/2541)
