Skip to content

Instantly share code, notes, and snippets.

@MylesCaley
Created January 5, 2017 18:52
Show Gist options
  • Save MylesCaley/023c98d2ed36f0118bd175e901598f00 to your computer and use it in GitHub Desktop.
Save MylesCaley/023c98d2ed36f0118bd175e901598f00 to your computer and use it in GitHub Desktop.
find an object with certain property in swift
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