Make a function that looks through an array of objects (first argument) and returns an array of all objects that have matching name and value pairs (second argument).