Skip to content

Commit e791ab0

Browse files
committed
更换缩近方式
1 parent 860d060 commit e791ab0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

module/likeArray.js

-9
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,6 @@
306306
return '[Object Array]';
307307
}
308308
});
309-
310-
// 增加对for..in支持
311-
if(window.Symbol && window.Symbol.iterator){
312-
LikeArray.prototype[Symbol.iterator]= function*(){
313-
for(var i=0; i<this.length; i++){
314-
yield i;
315-
}
316-
};
317-
}
318309

319310
// 在ES6环境下支持 delete instance[0]及 instance[0] = 'hello'
320311
if(window.Proxy){

0 commit comments

Comments
 (0)