Swift First Where

[Solved] Swift First Where | Swift - Code Explorer | yomemimo.com
Question : swift first where

Answered by : mobile-star

if let firstMatch = yourArray.first(where: {$0.id == lookupId}) { print("found it: \(firstMatch)")
} else { print("nothing found :(")
}

Source : | Last Update : Fri, 14 Feb 20

Answers related to swift first where

Code Explorer Popular Question For Swift