Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikejoyceio/c6d54506bc8ab24f0199 to your computer and use it in GitHub Desktop.
Save mikejoyceio/c6d54506bc8ab24f0199 to your computer and use it in GitHub Desktop.
Access an array of object property values by index.
var data = [
{ property: '01' },
{ property: '02' },
{ property: '03' },
{ property: '04' },
{ property: '05' }
];
for (obj in data) {
data[obj][Object.keys(data[obj])[0]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment