I want to add an Object method, but now it has all the arrays and objects. When I use for(.. in ..)
, it is re-read, and this is a problem for my software. So, I need to make my method non-enumerable.
I know that there is Object.defineProperty()
, but it is not supported by the old browser (which still exists) and even the latest versions of Konqueror.
Is there any other way to make the method non-enumerable?
source share