Monday, June 11, 2018

remove duplicates from two arrays javascript

I have two arrays in javascript ,And I wand to remove duplicates from them



var array1 = [1,2,3,4,5,6,7,8,9];
var array2 = [3,5,7,11,17,19];


I want the output to be [1,2,3,4,5,6,7,8,9,11,17,19]

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...