I've been using Object.getOwnPropertyNames
for a while. This is my code:
var ObjectAdditions = {
deepFreeze: function(o) {//code},
extendToArray: function(object) {//code}
};
var properties = Object.getOwnPropertyNames(ObjectAdditions);
This is what properties
came up as:
["deepFreeze", "extendToArray"]
Unfortunately I also expected attributes like "prototype" and "constructor" to come up. How can I do this?