Array

struct Array<Element> : CollectionType, MutableCollectionType, _DestructorSafeContainer
  • Determines if an array contains a givenelement

    Parameter

    Parameter object: The element to check if it is contained in the array.

    Returns

    Bool

    Declaration

    Swift

    public func contains<T:Equatable>(object: T) -> Bool

    Parameters

    object

    The element to check if it is contained in the array.

    Return Value

    Bool