i have a three arrays in javascript
var array1 = new Array (1,2,3,4,5);
var array2 = new Array ("a", "b", "c", "d", "e");
var array3 = new Array ("a", "c", "d");
and i basically want to:
Create a new array with array2 minus items in array3. So it should result in
var array4 = new Array {"b", "e"};
Create another array with the corresponding index of array1 that aligns with array 4, so in this case i would also want to be able to generate
var array5 = new Array {2, 5}
i know in dotnet 3.5 there are lots of simple methods to do this operation but wasn't sure if javascript had anything similar.