Skip to content

Instantly share code, notes, and snippets.

@andrewjmead
Created May 10, 2017 18:02
Show Gist options
  • Save andrewjmead/0522570b9f7279cea72ea78dc167bd06 to your computer and use it in GitHub Desktop.
Save andrewjmead/0522570b9f7279cea72ea78dc167bd06 to your computer and use it in GitHub Desktop.
Example of array find method
const users = [{
name: 'Andrew',
age: 26
}, {
name: 'Jen',
age: 28
}];
const foundUser = users.find((user) => user.name === 'Andrew');
console.log(foundUser);
// Will print out:
// {
// age: 26,
// name: "Andrew"
// }
@Xkill119966
Copy link

Good Bro

@Johnnybravo23
Copy link

Awesome

@tjuandev
Copy link

Best Teacher!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment