【ECMAScript】循环

 

for of

for (let [index, item] of arr.entries()) {
}
for (const [index, item] of arr.entries()) {
}

 

posted @ 2022-03-24 14:30  谷粒-笔记  阅读(21)  评论(0)    收藏  举报