Intermediate algorithm scripting(i need help)

i have been trying to solve the Where at thou challenge, and i cant seem to get all the box ticked good. I am only getting the first 3 test correct. Please how do i improve on this code
here is my code

function whatIsInAName(collection, source) {
  // What's in a name?
  var arr = [];
  // Only change code below this line
  arr = collection.filter(function(x) {
      for(let keyd in source){
        if(x[keyd] !== source[keyd]){
          return false;
        }
        return true;
      }
    }); 
  // Only change code above this line
  return arr;
}

You should return true outside the for...in.

it worked… thanks