Array.find 5

Run Settings
LanguageJavaScript
Language Version
Run Command
// arr.find(callback(element, [index], [array]), [thisArg]); // [...] opsional parameter const students = [ { name: 'James', score: 88, }, { name: 'Thomas', score: 90, } ]; const findJames = students.find(student => student.name === 'Thomas'); console.log(findJames); // callback = student
Editor Settings
Theme
Key bindings
Full width
Lines