Created
January 13, 2020 14:24
-
-
Save cesarkohl/694f30b85184540fb38d148947190d3a to your computer and use it in GitHub Desktop.
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
| var students = [ | |
| {name: 'adam'}, | |
| {name: 'brian'}, | |
| {name: 'charles'} | |
| ]; | |
| var student = students.find (function (student) { | |
| return student.name === 'brian'; | |
| }); | |
| console.log (student); // {"name": "brian"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment