I am trying to check if a specific item (value of a property) exists in a array of objects, but could not find out any solution. Please let me know, what i am missing here.<
A small iteration on @Antonio's solution using the , (where) notation:
if let results = objarray.filter({ $0.id == 1 }), results.count > 0 {
print("1 exists in the array")
} else {
print("1 does not exists in the array")
}