How to check if an array exists in an array of arrays? I tried using simple javascript and jquery methods, but no one helps.
IE this does not work:
$.inArray( [1,2], [[0], [], [1,2]] )
Even simpler:
[1,2] == [1,2] //gives false. [1,2] === [1,2] //gives false.
ORDER is NOT important to my task, only the same elements are needed.
source share