Remove duplicates in array
I have two arrays, one for categories, and one for brands. I want to filter out every occurance of the the same brand, or category.
It works but does have some bugs. It seems that either if there is more than 2 occurances it does not remove it and I get two of the same brand in my list.
Or it's just if it's duplicate on the very first and last round of the for loop. that my conditions does not check out.
It should not be a difference in data value. but hard to tell with data from 20+ stores
It works but does have some bugs. It seems that either if there is more than 2 occurances it does not remove it and I get two of the same brand in my list.
Or it's just if it's duplicate on the very first and last round of the for loop. that my conditions does not check out.
It should not be a difference in data value. but hard to tell with data from 20+ stores

