I have an array, with custom objects.

I Would like to pop the repeated objects, with the repeated properties:

```
let product = Product()
product.subCategory = "one"

let product2 = Product()
product2.subCategory = "two"

let product3 = Product()
product3.subCategory = "two"

let array = [product,product2,product3]

```

in this case, pop the `product2 or product3`