I have a multidimensional array that looks like this:
var workouts = [
[0, Object, 0, 0, 0],
[Object, 0, 0, 0, 0],
[0, 0, 0, Object, 0]
];
I'd like to flatten/merge the array and remove the duplicates. The result should look something like this:
[Object, Object, 0, Object, 0]
Is it possible to perform?