Created
January 5, 2017 18:52
-
-
Save MylesCaley/023c98d2ed36f0118bd175e901598f00 to your computer and use it in GitHub Desktop.
find an object with certain property in swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let index = updates.index(where: {$0.id == self.prototypeUpdate?.id}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment