Remove the polyfill of Array.from.

This commit is contained in:
Tipx-L 2023-09-03 18:23:01 -07:00
parent 40f91f439c
commit 29645b8414
1 changed files with 0 additions and 16 deletions

View File

@ -7638,22 +7638,6 @@
}
});
}
if(!Array.from){
Object.defineProperty(Array, "from", {
configurable:true,
enumerable:false,
writable:true,
value:function(args){
const list=[];
if(args&&args.length){
for(let i=0;i<args.length;i++){
list.push(args[i]);
}
}
return list;
}
});
}
if(!Object.values){
Object.defineProperty(Object, 'values', {
configurable:true,