Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Last active September 25, 2016 15:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save freshcutdevelopment/a2cdccd2b1cf3fbb6997a14b62eae319 to your computer and use it in GitHub Desktop.
Finding an object with ES3
var matchingTodoItem = {};
for(var i = 0; i < todoItems.length; i++ ){
if(todoItems[i].id == id){
matchingTodoItem = todoItems[i];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment