{"action":"created","issue":{"url":"https://api.github.com/repos/huluoyang/freecodecamp.cn/issues/159","repository_url":"https://api.github.com/repos/huluoyang/freecodecamp.cn","labels_url":"https://api.github.com/repos/huluoyang/freecodecamp.cn/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/huluoyang/freecodecamp.cn/issues/159/comments","events_url":"https://api.github.com/repos/huluoyang/freecodecamp.cn/issues/159/events","html_url":"https://github.com/huluoyang/freecodecamp.cn/issues/159","id":172334085,"number":159,"title":"发现一个BUG，答案是对的但是通不过","user":{"login":"hongsonGor","id":20741944,"avatar_url":"https://avatars.githubusercontent.com/u/20741944?v=3","gravatar_id":"","url":"https://api.github.com/users/hongsonGor","html_url":"https://github.com/hongsonGor","followers_url":"https://api.github.com/users/hongsonGor/followers","following_url":"https://api.github.com/users/hongsonGor/following{/other_user}","gists_url":"https://api.github.com/users/hongsonGor/gists{/gist_id}","starred_url":"https://api.github.com/users/hongsonGor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongsonGor/subscriptions","organizations_url":"https://api.github.com/users/hongsonGor/orgs","repos_url":"https://api.github.com/users/hongsonGor/repos","events_url":"https://api.github.com/users/hongsonGor/events{/privacy}","received_events_url":"https://api.github.com/users/hongsonGor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-21T18:33:36Z","updated_at":"2016-08-22T06:20:04Z","closed_at":"2016-08-22T06:20:04Z","body":"Challenge [Steamroller](https://www.freecodecamp.cn/challenges/steamroller#?solution=var%20arr1%3D%5B%5D%3B%0Afunction%20steamroller(arr)%20%7B%0A%20%20%2F%2F%20I'm%20a%20steamroller%2C%20baby%0A%20%20for(var%20i%3D0%3Bi%3Carr.length%3Bi%2B%2B)%7B%0A%20%20%20%20if(Array.isArray(arr%5Bi%5D)%3D%3D%3Dfalse)%7B%0A%20%20%20%20%20%20arr1.push(arr%5Bi%5D)%3B%0A%20%20%20%20%7D%0A%20%20%20%20else%7B%0A%20%20%20%20%20%20steamroller(arr%5Bi%5D)%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20return%20arr1%3B%0A%7D%0A%0Asteamroller(%5B1%2C%20%5B2%5D%2C%20%5B3%2C%20%5B%5B4%5D%5D%5D%5D)%3B%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.8 Safari/537.36</code>.\r\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\r\n\r\nMy code:\r\n```javascript\r\nvar arr1=[];\r\nfunction steamroller(arr) {\r\n  // I'm a steamroller, baby\r\n  for(var i=0;i<arr.length;i++){\r\n    if(Array.isArray(arr[i])===false){\r\n      arr1.push(arr[i]);\r\n    }\r\n    else{\r\n      steamroller(arr[i]);\r\n    }\r\n  }\r\n  return arr1;\r\n}\r\n\r\nsteamroller([1, [2], [3, [[4]]]]);\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/huluoyang/freecodecamp.cn/issues/comments/241323579","html_url":"https://github.com/huluoyang/freecodecamp.cn/issues/159#issuecomment-241323579","issue_url":"https://api.github.com/repos/huluoyang/freecodecamp.cn/issues/159","id":241323579,"user":{"login":"huluoyang","id":1304552,"avatar_url":"https://avatars.githubusercontent.com/u/1304552?v=3","gravatar_id":"","url":"https://api.github.com/users/huluoyang","html_url":"https://github.com/huluoyang","followers_url":"https://api.github.com/users/huluoyang/followers","following_url":"https://api.github.com/users/huluoyang/following{/other_user}","gists_url":"https://api.github.com/users/huluoyang/gists{/gist_id}","starred_url":"https://api.github.com/users/huluoyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huluoyang/subscriptions","organizations_url":"https://api.github.com/users/huluoyang/orgs","repos_url":"https://api.github.com/users/huluoyang/repos","events_url":"https://api.github.com/users/huluoyang/events{/privacy}","received_events_url":"https://api.github.com/users/huluoyang/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T06:20:04Z","updated_at":"2016-08-22T06:20:04Z","body":"必须通过所以的测试用例。\r\n可以参考下这个：http://blog.ilanyy.com/fcc/fcc-algor-Steamroller.html"}}
{"actor":{"display_login":"huluoyang"}}