title: Limiting the values in an array collection
body: <p>I have an array collection that I would like to limit to say 100 items.  I tried setting up a filter function where the return was:</p>
  
  <p>return (myAC.getItemIndex(item) > 100);</p>
  
  <p>but the value was always -1.  For whatever reason it couldn't find the item, even though the item is definitely there.</p>
  
  <p>I'm able to do this with a while loop:</p>
  
  <p>while(myAC.length > 100) myAC.removeItemAt(100);</p>
  
  <p>Is there another way I can accomplish this?   Thanks!</p>