Skip to content

Instantly share code, notes, and snippets.

@ami-GS
Created April 6, 2014 10:50
Show Gist options
  • Save ami-GS/10004427 to your computer and use it in GitHub Desktop.
Save ami-GS/10004427 to your computer and use it in GitHub Desktop.
Pythonのdir(object)みたいな関数
function printProperties(obj) {
var properties = '';
for (var prop in obj){
properties += prop + "=" + obj[prop] + "\n";
}
alert(properties);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment