Javascript – Filter array of objects with multiple conditions
I have an array of objects that looks like this: const pets = [ {name: "Dog", tags: "ground, pet, active"}, {name: "Cat", tags: "ground, pet, relaxed"}, {name: "Fish", tags: "water, pet, exotic"}, ] I want to filter out the array…