Last active
January 4, 2019 10:19
-
-
Save faruktoptas/9615199 to your computer and use it in GitHub Desktop.
JS Object Keys
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 objkeys(obj){ | |
keys = Object.keys(obj); | |
var ret = ""; | |
for (var o in keys){ | |
ret = ret +keys[o] + "=>" + obj[keys[o]] + "\n"; | |
} | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment