Add filter() function to select a list of items in an array