JavaScript provide many types of the loops like for, for(reverse), for…of, for…in, foreach, forawait. Which one is fastest why?

前端 未结 0 1564
眼角桃花
眼角桃花 2021-01-27 02:46

Why JavaScript provide too many types of loops? I have an array with over 1 millions items and execute for a loop.

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