set.reset method
# Peter Michaux (13 years ago)
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
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
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++) {
}