This commit is contained in:
kuangshen04 2023-10-08 15:27:41 +08:00
parent 27ddea0730
commit 98e59a4427
1 changed files with 2 additions and 2 deletions

View File

@ -8487,7 +8487,7 @@
enumerable:false, enumerable:false,
writable:true, writable:true,
value:function(){ value:function(){
for(const i of arguments) this.add(...i); for(const i of Array.from(arguments)) this.add(...i);
return this; return this;
} }
}); });
@ -8509,7 +8509,7 @@
enumerable:false, enumerable:false,
writable:true, writable:true,
value:function(){ value:function(){
for(const i of arguments) this.add(...i); for(const i of Array.from(arguments)) this.remove(...i);
} }
}); });
Object.defineProperty(Array.prototype,"unique",{ Object.defineProperty(Array.prototype,"unique",{