I have the two following arrays:
array1 = [{'itemCode':'a'}, {'itemCode':'b'}, {'itemCode':'c'}];
array2 = [{'itemCode':'a'}, {'itemCode':'b'}, {'itemCode':'d'}];
I'm looking for a way to slice array2 from array 1 and return the "F" value.
Does anyone know of a quick way to do this in JavaScript, Im totally stumped.
I tried _difference and _unique from underscore, but that doesnt seem to be the right solution.
var diffArray = _.difference(array1, array2);
Any help would be greatly appreciated!