Return value of mutation methods on collections

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


Hi,

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()`.

—Claude


More information about the es-discuss mailing list