Sorry. Incomplete message before and premature send.

Set.prototype.reset = function() {
   this.empty();
   for (var i = 0, ilen = arguments.length; i < ilen; i++) {
       this.add(arguments[i]);
   }
};

Peter

On Wed, Feb 15, 2012 at 10:39 PM, Peter Michaux <petermich...@gmail.com> wrote:
> I don't know how rich the committee wants to make objects in ES.next.
>
> For example, what about a set.reset method?
>
> Set.prototype.reset = function() {
>    this.empty();
>    for (var i = 0, ilen = arguments.length; i < ilen; i++) {
>
>    }
> }
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to