Last active
January 15, 2016 19:46
-
-
Save josebalius/a30dc967da0821b579a4 to your computer and use it in GitHub Desktop.
Array Performance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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