Reputation: 83
I have two arrays. And I use filter()
to compare and bring me the value that is equal in both.
$(array1).filter(array2);
In the console the value appears like that: http://prntscr.com/bkqkd7.
How do I get the value, the string from that object. What does it mean the "0" in the console?
Upvotes: 0
Views: 67
Reputation: 2031
Check it as an Array and loop through it:
for (var i=0; i<$(array1).filter(array2).length; ++i)
Upvotes: 1