Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift first where

if let firstMatch = yourArray.first(where: {$0.id == lookupId}) {
  print("found it: (firstMatch)")
} else {
  print("nothing found :(")
}
 
PREVIOUS NEXT
Tagged: #swift
ADD COMMENT
Topic
Name
3+3 =