Created
February 8, 2018 15:34
-
-
Save Farmatique/4433d7b9e6e6084b5c294595728d7a11 to your computer and use it in GitHub Desktop.
Find if array of objects have an object with specific property name
This file contains hidden or 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
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