Nested some-function stays on first element

前端 未结 0 1155
北海茫月
北海茫月 2020-12-21 20:11

Hi Guys I have the following code:

arr = [
  [33, 33],
  [44, 44],
  [55, 55]
]
val = [33, 33]

thereIsCollision = (val, arr) => {
  arr.some((currentVal)          


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