【ECMAScript】循环


for of

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