/ Published in: JavaScript
URL: http://stackoverflow.com/questions/208016/how-to-list-the-properties-of-a-javascript-object
Expand |
Embed | Plain Text
var getKeys = function(obj){ var keys = []; for(var key in obj){ keys.push(key); } return keys; }
You need to login to post a comment.
