I'm trying to compare results from two different arrays containing similar strings;
Array1:
A350.1 - 2h 46 m
A210.2 - 3h 46 m
Array2:
A450.3 - 8h 0 m
A440.5 - 13h 0 m
A450.1 - 4h 0 m
A350.1 - 1h 45 m
A320.7 - 3h 45 m
So I would need to filter out A350.1 - 2h 46 m from Array1 since there's a similar object A350.1 - 1h 45 m in Array2
The results should look like this from the filtered array, only removing the object which has the identical name (in this example A350.1):
A210.2 - 3h 46 m
Any way I could do this effectively and push the results in a new filtered array?
["A350.1 - 2h 46 m", "A210.2 - 3h 46 m"]? or arrays withobjects? Can you write down the exact array here in Javascript?array2is taken always? Can you explain what you are trying to do here?