i have the following array
let arr = [
[
"[email protected]",
"[email protected]"
],
[
"[email protected]",
"[email protected]"
]
]
i want get the unique values from this array. so im expecting my result to be like this
[
[
"[email protected]",
"[email protected]",
"[email protected]"
]
]
i have used array unique function but not able to get the result
var new_array = arr[0].concat(arr[1]);
var uniques = new_array.unique();
this worked if i have two index but how about for multiple index?