I want to compare if 2 arrays are equal, here is my code:
var letteronloc = [String]();
letteronloc.append("test")
let characters = Array("test")
if(letteronloc == characters) {
}
but i have an error: could not find an overload for == that accepts the supplied arguments
I think its because the arrays are not equal, because the second array is not an string array. But how can i fix this?