set.reset method

Peter Michaux petermichaux at gmail.com
Wed Feb 15 22:39:03 PST 2012


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++) {

    }
}


More information about the es-discuss mailing list