When I define an object I can reach all its properties by using the dot character and the same applies to built-in functions like String, Array, Math, etc.
But I cannot loop through them by using for(# in # for example. It says String is native code but still I can reach all its members albeit I cannot iterate through them.
I know window is iterable but their 'sub-functions' appear to be not.
Why is that? Is there a chance to call the properties without explicitly typing their names in? Can I list all its members somehow?
I am aware of that It does not look useful and no one would need it in production. I am asking it because I could not do it and I hope someone can give me some help.