Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift array remove

let orignalArray = [1,2,3,4]
let newArray = orignalArray.filter { $0 != 2 } // use remove element insted of 2

print(newArray) // [1,3,4]
 
PREVIOUS NEXT
Tagged: #swift #array #remove
ADD COMMENT
Topic
Name
2+1 =