i have the following array
let arr = [
[
"s1@example.com",
"s2@example.com"
],
[
"s1@example.com",
"s3@example.com"
]
]
i want get the unique values from this array. so im expecting my result to be like this
[
[
"s1@example.com",
"s2@example.com",
"s3@example.com"
]
]
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?