Return value of mutation methods on collections

Claude Pache claude.pache at
Tue Sep 23 12:57:12 PDT 2014


Currently, `(Weak)Map.prototype.set` and `(Weak)Set.prototype.add` are specified to return the collection on which the method is applied.

It seems logical to extend that scheme to other mutation methods, namely `.delete()` and `.clear()`.


More information about the es-discuss mailing list