Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

How To Find String In JavaScript Array With Find Method

node v14.20.1
version: 1.0.0
endpointsharetweet
const students = [ 'Jake', 'Ray', 'Lisa', 'Isabella', 'Tom', 'Kevin', 'Armin' ] console.log(students.find((student) => student === 'Jake')); // Returns 'Jake' console.log(students.find((student) => student === 'Rob')); // Returns undefined
Loading…

no comments

    sign in to comment