{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/10285","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/10285/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/10285/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/10285/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/10285","id":172263283,"number":10285,"title":"Test fails even with correct output","user":{"login":"balugeorge","id":10348085,"avatar_url":"https://avatars.githubusercontent.com/u/10348085?v=3","gravatar_id":"","url":"https://api.github.com/users/balugeorge","html_url":"https://github.com/balugeorge","followers_url":"https://api.github.com/users/balugeorge/followers","following_url":"https://api.github.com/users/balugeorge/following{/other_user}","gists_url":"https://api.github.com/users/balugeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/balugeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balugeorge/subscriptions","organizations_url":"https://api.github.com/users/balugeorge/orgs","repos_url":"https://api.github.com/users/balugeorge/repos","events_url":"https://api.github.com/users/balugeorge/events{/privacy}","received_events_url":"https://api.github.com/users/balugeorge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-20T09:43:00Z","updated_at":"2016-08-20T10:28:29Z","closed_at":"2016-08-20T10:01:15Z","body":"Challenge [Chunky Monkey](https://www.freecodecamp.com/challenges/chunky-monkey#?solution=var%20split%20%3D%20%5B%5D%3B%0Avar%20com%20%3D%20%5B%5D%3B%0Afunction%20chunkArrayInGroups(arr%2C%20size)%20%7B%0A%20%20for%20(var%20i%20%3D%200%2C%20j%20%3D%200%3B%20i%20%3C%20arr.length%3B%20i%2B%2B%2C%20j%20%2B%3D%20size)%7B%0A%20%20%09if%20(arr.slice(j%2C%20j%20%2B%20size).length%20%3E%200)%20%7B%0A%20%20%20%20split%5Bi%5D%20%3D%20arr.slice(j%2C%20j%20%2B%20size)%3B%0A%20%20%20%20com%5Bi%5D%20%3D%20split%5Bi%5D%3B%0A%20%20%7D%0A%20%20%7D%0A%20%20return%20com%3B%0A%7D%0A%0AchunkArrayInGroups(%5B0%2C%201%2C%202%2C%203%2C%204%2C%205%5D%2C%204)%3B) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0</code>.\r\n\r\nThe test `chunkArrayInGroups([0, 1, 2, 3, 4, 5], 4);` shows the status as failure even though it produces the desired output(see attached screenshot).\r\n\r\nMy code:\r\n```javascript\r\nvar split = [];\r\nvar com = [];\r\nfunction chunkArrayInGroups(arr, size) {\r\n  for (var i = 0, j = 0; i < arr.length; i++, j += size){\r\n  \tif (arr.slice(j, j + size).length > 0) {\r\n    split[i] = arr.slice(j, j + size);\r\n    com[i] = split[i];\r\n  }\r\n  }\r\n  return com;\r\n}\r\n\r\nchunkArrayInGroups([0, 1, 2, 3, 4, 5], 4);\r\n```\r\n![cm](https://cloud.githubusercontent.com/assets/10348085/17830421/5172f2f8-66e8-11e6-889e-ca1d7df8132a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/241192154","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/10285#issuecomment-241192154","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/10285","id":241192154,"user":{"login":"balugeorge","id":10348085,"avatar_url":"https://avatars.githubusercontent.com/u/10348085?v=3","gravatar_id":"","url":"https://api.github.com/users/balugeorge","html_url":"https://github.com/balugeorge","followers_url":"https://api.github.com/users/balugeorge/followers","following_url":"https://api.github.com/users/balugeorge/following{/other_user}","gists_url":"https://api.github.com/users/balugeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/balugeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balugeorge/subscriptions","organizations_url":"https://api.github.com/users/balugeorge/orgs","repos_url":"https://api.github.com/users/balugeorge/repos","events_url":"https://api.github.com/users/balugeorge/events{/privacy}","received_events_url":"https://api.github.com/users/balugeorge/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T10:28:29Z","updated_at":"2016-08-20T10:28:29Z","body":"Thank you @BKinahan "}}
{"actor":{"display_login":"balugeorge"}}