Skip to content

Instantly share code, notes, and snippets.

@gcr
Created January 16, 2009 06:33
Show Gist options
  • Save gcr/47847 to your computer and use it in GitHub Desktop.
Save gcr/47847 to your computer and use it in GitHub Desktop.
a = {'a':1, 'b':2, 'c':3}
for (y in a) {
console.log(y + " " + a[y]);
}
a['b'] = undefined;
for (y in a) {
console.log(y + " " + a[y]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment