Skip to content

Instantly share code, notes, and snippets.

@josebalius
Last active January 15, 2016 19:46
Show Gist options
  • Save josebalius/a30dc967da0821b579a4 to your computer and use it in GitHub Desktop.
Save josebalius/a30dc967da0821b579a4 to your computer and use it in GitHub Desktop.
Array Performance
var arr = [
{
name: "John",
age: 20
}, {
name: "Ally",
age: 25
}, {
name: "Jordan",
age: 30
}
]
var getArrByName = function(name) {
// Implement this function
}
console.log(getArrByName("Ally"))
// should equal to {name: "Ally", age: 25}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment