for(var i in aArray) VS for(i=0; i<aArray.length; i++)

前端 未结 6 869
挽巷
挽巷 2021-01-07 10:20

I just want to ask if the in_array_orig and in_array_new is just the same. and also im confused on the result when comparing both array (<

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 10:43

    I guess this is already discussed here in SO.

    See it here

    • JavaScript: Difference between for..in and for
    • JavaScript foreach Vs for

提交回复
热议问题