Skip to content

Instantly share code, notes, and snippets.

@chris-sev
Created December 21, 2018 16:29
Show Gist options
  • Save chris-sev/f77b2d8194831c5b3db780fc19b82231 to your computer and use it in GitHub Desktop.
Save chris-sev/f77b2d8194831c5b3db780fc19b82231 to your computer and use it in GitHub Desktop.
Quick Example
const people = ['chris', 'nick', 'holly'];
// find chris
const singlePerson = people.find(name => name === 'chris');
console.log(singlePerson);
// output: chris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment