how to find unique elements in an array using Javascript for loop?

Published --