for(var i=0;i<d.length;i++)
{
current=d[i].businessunits;
arraynew.push(current);//array new like this {0:EU;1:PU;2:MS;3:EU;4:PU}
}
I have an array var k={"Eu","PU","MS","EU","PU"}
and I need only EU PU MS
because EU
and PU
are Repeating.How to remove the Repeating Elements in an array.