{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/freecodecamp/issues/942","labels_url":"https://api.github.com/repos/FreeCodeCamp/freecodecamp/issues/942/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/freecodecamp/issues/942/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/freecodecamp/issues/942/events","html_url":"https://github.com/FreeCodeCamp/freecodecamp/issues/942","id":88548865,"number":942,"title":"faulty passing?","user":{"login":"matthewsvm","id":5934614,"avatar_url":"https://avatars.githubusercontent.com/u/5934614?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewsvm","html_url":"https://github.com/matthewsvm","followers_url":"https://api.github.com/users/matthewsvm/followers","following_url":"https://api.github.com/users/matthewsvm/following{/other_user}","gists_url":"https://api.github.com/users/matthewsvm/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewsvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewsvm/subscriptions","organizations_url":"https://api.github.com/users/matthewsvm/orgs","repos_url":"https://api.github.com/users/matthewsvm/repos","events_url":"https://api.github.com/users/matthewsvm/events{/privacy}","received_events_url":"https://api.github.com/users/matthewsvm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T21:45:29Z","updated_at":"2015-06-18T03:39:41Z","closed_at":null,"body":"Challenge http://www.freecodecamp.com/challenges/bonfire-seek-and-destroy has an issue. Please describe how to reproduce it, and include links to screen shots if possible.\r\n\r\nThis passes when there are more than 2 arguments after the array, even if it doesn't actually delete those arguments from the array."},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/freecodecamp/issues/comments/113025834","html_url":"https://github.com/FreeCodeCamp/freecodecamp/issues/942#issuecomment-113025834","issue_url":"https://api.github.com/repos/FreeCodeCamp/freecodecamp/issues/942","id":113025834,"user":{"login":"matthewsvm","id":5934614,"avatar_url":"https://avatars.githubusercontent.com/u/5934614?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewsvm","html_url":"https://github.com/matthewsvm","followers_url":"https://api.github.com/users/matthewsvm/followers","following_url":"https://api.github.com/users/matthewsvm/following{/other_user}","gists_url":"https://api.github.com/users/matthewsvm/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewsvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewsvm/subscriptions","organizations_url":"https://api.github.com/users/matthewsvm/orgs","repos_url":"https://api.github.com/users/matthewsvm/repos","events_url":"https://api.github.com/users/matthewsvm/events{/privacy}","received_events_url":"https://api.github.com/users/matthewsvm/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T03:39:41Z","updated_at":"2015-06-18T03:39:41Z","body":"Here's an example of one that passed, but the returned array is [1, 1] instead of an empty array:\r\n\r\nfunction destroyer(arr) {\r\n  // Remove all the values\r\n  \r\n  // for each element in arr, remove each element in args that \r\n  // is > args[0]\r\n  var args = Array.prototype.slice.call(arguments);\r\n  var holder = [];\r\n  \r\n  var filtered = arr.filter(destroy);\r\n  // function for above \r\n  function destroy(value) {\r\n    for (i = 1; i < args.length; i++) {\r\n      return value !== args[i] && value !== args [i + 1];\r\n    }\r\n  }\r\n  return filtered;\r\n}\r\n\r\ndestroyer([1, 2, 3, 1, 2, 3], 2, 3, 1);\r\n\r\n// returned arr is [1, 1] instead of [ ]."}}