Sign in
Log inSign up

How to remove duplicate items from an array in JavaScript?

Default profile photo
Anonymous
·Mar 21, 2018
users =[1,1,4,4,5]; // given array

How can we remove duplicate elements from the array, what should be the approach?