Created
April 6, 2014 10:50
-
-
Save ami-GS/10004427 to your computer and use it in GitHub Desktop.
Pythonのdir(object)みたいな関数
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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