Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift array contains

let elements = [1, 2, 3, 4, 5]
if elements.contains(5) {
    print("yes")
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #array
ADD COMMENT
Topic
Name
2+2 =