Why array includes works faster than flipping the array into an object and checking looking for the by key?

前端 未结 0 830
轮回少年
轮回少年 2020-12-17 04:12

I was trying to optimize my JS code today by simplifying complexity of my loops, and I got an idea to use one trick. The trick is I flipped the array into an object and chec

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