And how can i reference the object i am going to remove? I mean, i have an ArrayCollection filled with data and i want to remove an item with specific values just like in my example above. How can i reference it if getItemIndex method doesn't work?
Actually, it's not too hard. The ArrayCollection exposes the regular Array it wraps through its "source" property. Array has a filter() method that lets you run a function on every item where you can check for any conditions that you wish. The Array returned by filter() will have only the item reference(s) you need.