Created
October 11, 2018 18:15
-
-
Save alexpvieira/29df3076a3dc1c6d835e20f86ec34885 to your computer and use it in GitHub Desktop.
Find an object in array based on object's property
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
//ES6 | |
var obj = objArray.find((obj) => { return obj.id === 3 }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment