Skip to content

Instantly share code, notes, and snippets.

@frewsxcv
Last active December 16, 2015 09:58
Show Gist options
  • Save frewsxcv/5416325 to your computer and use it in GitHub Desktop.
Save frewsxcv/5416325 to your computer and use it in GitHub Desktop.
var key;
for (key in myobj) {
if (myobj.hasOwnProperty(key)) {
console.log(key, myobj[key]);
}
}
//////////////////////////////////////
$.each(myobj, function (key, value) {
console.log(key, value);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment