// Better substitute for iterator and loop for (animal of match(animals, 'legs', 4)) { console.log(animal.type); }