I want to get unique values from two different arrays.
Two arrays are as below in JavaScript:
Like this:
var a=['a','b','c','d','e']; //Use brackets var b=['a','d','e','c'] var c = a.concat(b).sort(); var uniques = {}; for(var i=0; i
Now uniquesArray contains only unique values. Hope this Helps