EDIT POST First Post Mark as Spam hiyatran
Posts: 18 - Registered: 2010-06-20 20:53:36
I have 2 arrays and I would like to compare the 2 arrays.
If an element in array 1 is NOT in array 2 then I would like to display that element.
In this case, I should only display the letter "c" but it doesn't work and I don't know why??
Here's my code:
EDIT POST Reply #1 Mark as Spam mohamedzarmeda
Posts: 3 - Registered: 2013-09-29 19:18:00
The same problem I suffer from it
EDIT POST Reply #2 Mark as Spam joesimmons
Posts: 5 - Registered: 2013-09-06 14:02:57
If you have Array.prototype.forEach and Array.prototype.indexOf in your browser, you could do this: