The code in Advanced code solution is not working when the last element of the source object is correct while other elements are wrong. For example, whatIsInAName([{ first: "Romeo", last: "Montague" }, { first: "Mercutio", last: null }, { first: "Tybalt", last: "Capulet" }], { first: 1, last: "Capulet" }); will return [{"first":"Tybalt","last":"Capulet"}] which is not right. I think using .reduce() function is not the best way to do this. Please change it. Thank you.
Refer : https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9421