Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Please add .pop() #18

Closed
tabatkins opened this issue Jan 23, 2018 · 1 comment
Closed

Please add .pop() #18

tabatkins opened this issue Jan 23, 2018 · 1 comment

Comments

@tabatkins
Copy link

Popping from a Set/Map is actually very useful, regardless of whether there's a direction/ordering or not. The semantics are just "remove one arbitrary value from the set and give it to me", which is annoyingly clumsy to implement by hand.

I've used .pop() in Python several times, and felt the lack of it in JS projects.

@Ginden
Copy link
Collaborator

Ginden commented Jan 27, 2018

This issue was moved to tc39/proposal-collection-methods#1

@Ginden Ginden closed this as completed Jan 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants