A for-loop that compares two arrays looking for matching values

前端 未结 4 906
我在风中等你
我在风中等你 2020-12-14 03:32

I have two arrays that I need to check against each other and if they have reached a point where both items in each array are actually the same as one another, then append s

4条回答
  •  忘掉有多难
    2020-12-14 04:12

    i think you should first create an array intersection and then iterate over the result to do your thing...

提交回复
热议问题