#how to combine this into one array and remove duplicates?

4 messages · Page 1 of 1 (latest)

molten bay
#

let arr3 = [
[
[
"#when",
"#printer",
"#only",
"#also",
"#ნაძვის",
"#лес",
"#елка",
"#聖誕樹"
]
],
[
[
"#when",
"#printer",
"#only",
"#ნაძვის",
"#лес",
"#елка",
"#聖誕樹"
]
],
[
[
"#when",
"#printer",
"#ნაძვის",
"#лес",
"#елка",
"#聖誕樹"
]
]
];

heavy falcon
#

#❓javascript message

plush breach
#

I'm not sure if there are inbuilt methods to do this. So, I would create a new array. Go through the arr3 (you might need a double for loop for that). While adding each element check if it already exists in the new array. If yes, go to the next element. If not, add the current element to the new array.

heavy falcon
#

did you click the link above? 😉