I've added some useful helpers to Array
(such as toSource()
for Opera). And now for..in
returns the functions with normal properties.
I'm using for..in
now, because the code is easier to read with it. And it's a native functional of js, so must be faster.
But adding type checks in loop makes it easier to use classic for(;;)
.
Is there any methods to avoid for..in
enumerate functions ?
Cross-browser work is not very necessary (must work in Opera), but speed is important.
Thank you.
Edit:
Is there any ability to avoid for..in
enumerate functions or custom properties from any Object ?