How to check first element of an array 1 with all elements in array 2, then second element in array 2, repeat, using JS for loop? or a JS method?
var array1 = ['1','2','3','4','5','6','7']
var array2 = ['43','24','35','42','55','63','1']
So, in the above code, we would check all elements in array1 against 43, then all elements in array 1 against 24 etc.
The output would remove any instances from array1 that match any instances in array 2 and add it to the end. So the output would be
array1 = ['2','3','4','5','6','7', '1']