将
array.forEach()
转换为
for...of
循环。 虽然这些代码结构相似,但
for...of
循环允许使用
continue
和
break
语句。