I have two arrays and I want to compare the content of array1 with array2.
var array1 = ['test1','test2','test3','test4'];
var array2 = ['test2','test3'];
And only if array1 matches array2 (like test2 == test2) then it should do something. So in this case it should iterate over the two arrays, but only do something for test2 and test3.
Thank you for your answers!