Monday 11 June 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...