C
Christopher Benson-Manica
I'd like to add a method foo() to all objects:
Object.prototype.foo=function() {
// whatever
}
The caveat, though, is that I do not want foo to be enumerable by a
for-in loop. Can I do that? If not, is there a way to derive a
subclass of Object for which foo is not enumerable?
Object.prototype.foo=function() {
// whatever
}
The caveat, though, is that I do not want foo to be enumerable by a
for-in loop. Can I do that? If not, is there a way to derive a
subclass of Object for which foo is not enumerable?