Find missing element by comparing 2 arrays in Javascript

前端 未结 5 2079
名媛妹妹
名媛妹妹 2020-12-10 06:12

For some reason I\'m having some serious difficulty wrapping my mind around this problem. I need this JS function that accepts 2 arrays, compares the 2, and then returns a s

5条回答
  •  天命终不由人
    2020-12-10 06:32

    Take a look at underscore difference function: http://documentcloud.github.com/underscore/#difference

提交回复
热议问题