I have an array of arrays.
let myArr = [[1,2,3],[1,2,3],[3,4,5],[5,6,7],[5,6,7]];
I want to filter all repeating arrays in myArr so it stores only unique ones:
let myArr = [[1,2,3],[3,4,5],[5,6,7]];
I thought that by converting myArr into a set it would clear all 'duplicate' values, however, it did not:
let mySet = new Set(myArr);
// Set is: {[1,2,3],[1,2,3],[3,4,5],[5,6,7],[5,6,7]}
How can I properly filter myArr to hold only unique elements?
[1,2,3] vs [1,,2,,3]? Or[1,"2"] vs ["1",2]?