July 22, 2017
Filter an array of objects
Quite often I might have an array of objects, be it from a db query or some json object, and I want to filter that list in a particular way. Lots of times I would find myself doing the same old thing; creating a new array, looping and looping until all I had left was what matched my filter. I’m...