Advertisements
Tag Archives: array filter

Filter arrays of data by any field in the array/objects

I frequently need to grab a subset of data from an array. I just stumbled over the FilterIterator which provides a nice interface to do just this. Based on this class here is a implementation which lets you perform basic filtering. Here is an example: And here is the class that makes it happen. Advertisements

Continue reading