It is not very straight forward how to select objects by their attributes from an array. This example provides the basic use case of how to select some objects based key values.