{"action":"closed","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/5809","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/5809/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/5809/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/5809/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/5809","id":124638395,"number":5809,"title":"The function returns [object Object]","user":{"login":"ledminh","id":12500215,"avatar_url":"https://avatars.githubusercontent.com/u/12500215?v=3","gravatar_id":"","url":"https://api.github.com/users/ledminh","html_url":"https://github.com/ledminh","followers_url":"https://api.github.com/users/ledminh/followers","following_url":"https://api.github.com/users/ledminh/following{/other_user}","gists_url":"https://api.github.com/users/ledminh/gists{/gist_id}","starred_url":"https://api.github.com/users/ledminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledminh/subscriptions","organizations_url":"https://api.github.com/users/ledminh/orgs","repos_url":"https://api.github.com/users/ledminh/repos","events_url":"https://api.github.com/users/ledminh/events{/privacy}","received_events_url":"https://api.github.com/users/ledminh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-03T09:04:41Z","updated_at":"2016-01-03T17:54:32Z","closed_at":"2016-01-03T17:54:32Z","body":"Challenge [Bonfire: Where art thou](http://www.freecodecamp.com/challenges/bonfire-where-art-thou#?solution=function%20where(collection%2C%20source)%20%7B%0A%20%20var%20arr%20%3D%20%5B%5D%3B%0A%20%20%2F%2F%20What%27s%20in%20a%20name%3F%0A%20%20%0A%20%20var%20keyArr%20%3D%20Object.keys(source)%3B%0A%20%20%0A%20%20for(var%20iCollection%20%3D%200%3B%20iCollection%20%3C%20collection.length%3B%20iCollection%2B%2B)%7B%0A%20%20%20%20%0A%20%20%20%20var%20currentObj%20%3D%20collection%5BiCollection%5D%3B%0A%20%20%20%20%0A%20%20%20%20var%20same%20%3D%20true%3B%0A%20%20%20%20for(var%20iKey%20%3D%200%3B%20iKey%20%3C%20keyArr.length%20%26%26%20same%3B%20iKey%2B%2B)%7B%0A%20%20%20%20%20%20if(!currentObj.hasOwnProperty(keyArr%5BiKey%5D)%20%7C%7C%20currentObj%5BkeyArr%5BiKey%5D%5D%20!%3D%20source%5BkeyArr%5BiKey%5D%5D)%0A%20%20%20%20%20%20%20%20same%20%3D%20false%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0A%20%20%20%20if(same)%0A%20%20%20%20%20%20arr.push(currentObj)%3B%0A%20%20%20%20%20%20%0A%20%20%7D%0A%20%20%20%0A%20%20return%20arr%3B%0A%7D%0A%0Awhere(%5B%7B%20first%3A%20%22Romeo%22%2C%20last%3A%20%22Montague%22%20%7D%2C%20%7B%20first%3A%20%22Mercutio%22%2C%20last%3A%20null%20%7D%2C%20%7B%20first%3A%20%22Tybalt%22%2C%20last%3A%20%22Capulet%22%20%7D%5D%2C%20%7B%20last%3A%20%22Capulet%22%20%7D)%3B%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0</code>.\r\n\r\nAlthough my code has already passed all the tests from this Bonfire but I noticed that the small black area in the left column right below the Bonfire's instruction where the result is usually displayed displays ```[object Object]``` (Check the screenshot below to see what I mean).\r\n\r\nI don't know whether it's because of my code or it's a bug.\r\n\r\nMy code:\r\n```javascript\r\nfunction where(collection, source) {\r\n  var arr = [];\r\n  // What's in a name?\r\n  \r\n  var keyArr = Object.keys(source);\r\n  \r\n  for(var iCollection = 0; iCollection < collection.length; iCollection++){\r\n    \r\n    var currentObj = collection[iCollection];\r\n    \r\n    var same = true;\r\n    for(var iKey = 0; iKey < keyArr.length && same; iKey++){\r\n      if(!currentObj.hasOwnProperty(keyArr[iKey]) || currentObj[keyArr[iKey]] != source[keyArr[iKey]])\r\n        same = false;\r\n    }\r\n    \r\n    if(same)\r\n      arr.push(currentObj);\r\n      \r\n  }\r\n   \r\n  return arr;\r\n}\r\n\r\nwhere([{ first: \"Romeo\", last: \"Montague\" }, { first: \"Mercutio\", last: null }, { first: \"Tybalt\", last: \"Capulet\" }], { last: \"Capulet\" });\r\n\r\n```\r\n\r\n![2016-01-03](https://cloud.githubusercontent.com/assets/12500215/12078037/f131b52e-b1b5-11e5-8ef9-33cc3f5a5211.png)\r\n"}}