In the original ActionScript implementation you could specify a start index and and end index to it. Both optional parameters. I initially done it like that, however, since splicing an array in a  loop is a terrible idea, we needed to duplicate the original children array and manipulate the copy. however that was a bit too much in my opinion, and went for the easy fast way. We can either remame it, or implement it correctly :)