Created
May 6, 2021 14:46
-
-
Save KinyuaMwaniki/8450ba830ea8b8b02ed5fd02955f1a5e to your computer and use it in GitHub Desktop.
Find object in array of objects
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
| this.selectedUser = this.users.find((user) => { | |
| return user.name === this.highlightedUsername; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment