I have two arrays like this:
var arrayA = [\"Mike\", \"James\", \"Stacey\", \"Steve\"] var arrayB = [\"Steve\", \"Gemma\", \"James\", \"Lucy\"]
Using the Array → Set → Array method mentioned by Antonio, and with the convenience of an operator, as freytag pointed out, I've been very satisfied using this:
Array → Set → Array
// Swift 3.x/4.x func - (lhs: [Element], rhs: [Element]) -> [Element] { return Array(Set(lhs).subtracting(Set(rhs))) }