title: Confusig image.getNumChildren() not working properly /JavaScript
body: <p>I try to delete images from an array wehre I stored them. Only images that do not have childred get removed. But not every image that has no childres gets removed. I did a console.log in the for loop to see if the images that are not removed have children and they do not have... but they are still in the array. This is how I approached it: </p>
  
  <pre><code>for(var i = 0; i &lt; this.images_container.length;i++)
  {
     if(this.images_container[i].getNumChildren() &lt; 1)
     {
       console.log(this.images_contaier[i].getNumChildren());
       this.images_container.splice(i,1);
  
     }
       console.log(this.images_contaier[i].getNumChildren());                        
  }
  </code></pre>
  
  <p>What am I doing wrong? </p>