Suppose if I have two arrays - array1 and array2
array1
array2
let array1 = [\"abc\",\"pqr\",\"xyz\"] let array2 = [\"pqr\", \"xyz\", \"abc\"]
You can do the same thing in Swift using Set and the == operator.
Set
==