var a = { d: 1, b: 3, fn: function () {} }; for (var prop in a) console.log(prop);
var a = { d: 1, b: 3, fn: function () {} }; alert( Object.keys(a) )