is there a simple and elegant way to get only the properties and not the methods of a Javascript object?
sample
if I use for … in here, I will also get aMethod(), which I have to filter off in the loop…
sample
Code:
Object.prototype.aMethod = function() { … }
var sample = { name: "value" };
Comment