How to overload operator == for (TArray)?

the world position does not know then why the items are spawned on the locations I want? and the problem is just they are duplicated, on one location 2 or 3 items are spawned