Skip to content

Instantly share code, notes, and snippets.

@JeroenVinke
Created February 27, 2016 18:35
Show Gist options
  • Save JeroenVinke/398ebec07b9f2f3788af to your computer and use it in GitHub Desktop.
Save JeroenVinke/398ebec07b9f2f3788af to your computer and use it in GitHub Desktop.
var arr = [{
name: 'a'
}, {
name: 'b'
}]
for(var index in arr) {
var obj = arr[index];
if(obj.name == 'a') {
// iets doen
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment