I have two integer arrays which contain numeric values. I want to look through both lists and check for commonality (or lack of) between the lists. I.e. I want to iterate th
Everyone is overly complicating this. Here's a one liner:
var isEqual = (JSON.stringify(arr1.sort()) === JSON.stringify(arr2.sort()));