Alternative to for with conditions in JS

前端 未结 0 1149
忘了有多久
忘了有多久 2021-01-26 17:39

I have searched but I am not able to find an alternative to something like this in JS:

let i;
for (i = 0; i < object.length && object[i] === 2; i++) {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题