Skip to content

Instantly share code, notes, and snippets.

@Farmatique
Created February 8, 2018 15:34
Show Gist options
  • Save Farmatique/4433d7b9e6e6084b5c294595728d7a11 to your computer and use it in GitHub Desktop.
Save Farmatique/4433d7b9e6e6084b5c294595728d7a11 to your computer and use it in GitHub Desktop.
Find if array of objects have an object with specific property name
myArray.filter(x => x.id === '45')
// it returns array with an object if its find matching object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment