contains(_:)
Returns a Boolean value that indicates whether the collection contains the identifier for the specified entity.
Declaration
func contains(_ entity: Entity) -> BoolReturn Value
true if the identifier for the entity is in the collection, or false if it isn’t.
Discussion
Parameter:
entity: The entity to look for in the collection.