/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var getKeys = function(obj){ var keys = []; for(var key in obj){ keys.push(key); } return keys; }
URL: http://stackoverflow.com/questions/208016/how-to-list-the-properties-of-a-javascript-object
Comments
