Additional cascading Map/Set/WeakMap methods?

Tab Atkins Jr. jackalmage at
Sun Jan 13 17:21:06 PST 2013

On Sun, Jan 13, 2013 at 5:14 PM, Brandon Benvie
<brandon at> wrote:
> delete is supposed to return whether the item was in the collection to
> delete or not, which otherwise would require using has to check for before
> deleting. I don't know how useful the functionality is, but wanted to note
> it since it'd be lost with this change. Chaining `clear` is an easy
> definitely though.

Why would it require such? Are you expecting it to throw if you try to
delete something that's not there?  Or just wanting to use delete() as
a destructive sampling method on the Map?


More information about the es-discuss mailing list