Loop through All Objects of a Class
<p>Let's say I have some class called <code>loopObject</code> and I initialize every object through something like <code>var apple = new loopObject();</code>  Is there anyway to loop through all objects of a class so that some function can be performed with each object as a parameter?  If there isn't a direct method, is there a way to place each new object into an array upon initialization?</p>
