{"action":"created","issue":{"url":"https://api.github.com/repos/renrenche-fe/everything-about-front-end/issues/17","repository_url":"https://api.github.com/repos/renrenche-fe/everything-about-front-end","labels_url":"https://api.github.com/repos/renrenche-fe/everything-about-front-end/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/renrenche-fe/everything-about-front-end/issues/17/comments","events_url":"https://api.github.com/repos/renrenche-fe/everything-about-front-end/issues/17/events","html_url":"https://github.com/renrenche-fe/everything-about-front-end/issues/17","id":317933869,"number":17,"title":"javascript 移动 0 元素","user":{"login":"sunhengzhe","id":8614151,"avatar_url":"https://avatars3.githubusercontent.com/u/8614151?v=4","gravatar_id":"","url":"https://api.github.com/users/sunhengzhe","html_url":"https://github.com/sunhengzhe","followers_url":"https://api.github.com/users/sunhengzhe/followers","following_url":"https://api.github.com/users/sunhengzhe/following{/other_user}","gists_url":"https://api.github.com/users/sunhengzhe/gists{/gist_id}","starred_url":"https://api.github.com/users/sunhengzhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunhengzhe/subscriptions","organizations_url":"https://api.github.com/users/sunhengzhe/orgs","repos_url":"https://api.github.com/users/sunhengzhe/repos","events_url":"https://api.github.com/users/sunhengzhe/events{/privacy}","received_events_url":"https://api.github.com/users/sunhengzhe/received_events","type":"User","site_admin":false},"labels":[{"id":647023612,"url":"https://api.github.com/repos/renrenche-fe/everything-about-front-end/labels/javascript","name":"javascript","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-04-26T08:50:00Z","updated_at":"2018-04-27T02:32:18Z","closed_at":null,"author_association":"OWNER","body":"试写一个方法，将一个数组内所有 0 元素移动到数组的末尾，并保证其他元素的相对次序保持不变，且 0 元素的排列顺序也与出现顺序一致。\r\n\r\n例如有如下数组\r\n\r\n[3, 0, 4, 6, \"0\", 0, 13, \"0\", 78, 0, 14]\r\n\r\n应输出\r\n\r\n[3, 4, 6, 13, 78, 14, 0, \"0\", 0, \"0\", 0]\r\n\r\n限制：\r\n\r\n- 不能使用任何数组或对象作为临时变量\r\n- 不能使用任何 Array.prototype 和 Object.prototype 上的方法\r\n\r\n```javascript\r\nfunction removeZeros(array) {\r\n    // TODO\r\n}\r\n\r\nvar input = [7, 2, 3, null, 4, 6, '0', undefined, 13, '0', 78, 0, 0, 19, 14];\r\nremoveZeros(input); // [ 7, 2, 3, null, 4, 6, undefined, 13, 78, 19, 14, '0', '0', 0, 0 ]\r\n\r\nvar input = [0, 1];\r\nremoveZeros(input); // [ 1, 0 ]\r\n\r\nvar input = [2, 1, 4];\r\nremoveZeros(input); // [ 2, 1, 4 ]\r\n\r\nvar input = [0, '0'];\r\nremoveZeros(input); // [ 0, '0' ]\r\n```"},"comment":{"url":"https://api.github.com/repos/renrenche-fe/everything-about-front-end/issues/comments/384845686","html_url":"https://github.com/renrenche-fe/everything-about-front-end/issues/17#issuecomment-384845686","issue_url":"https://api.github.com/repos/renrenche-fe/everything-about-front-end/issues/17","id":384845686,"user":{"login":"Jiasm","id":9568094,"avatar_url":"https://avatars1.githubusercontent.com/u/9568094?v=4","gravatar_id":"","url":"https://api.github.com/users/Jiasm","html_url":"https://github.com/Jiasm","followers_url":"https://api.github.com/users/Jiasm/followers","following_url":"https://api.github.com/users/Jiasm/following{/other_user}","gists_url":"https://api.github.com/users/Jiasm/gists{/gist_id}","starred_url":"https://api.github.com/users/Jiasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jiasm/subscriptions","organizations_url":"https://api.github.com/users/Jiasm/orgs","repos_url":"https://api.github.com/users/Jiasm/repos","events_url":"https://api.github.com/users/Jiasm/events{/privacy}","received_events_url":"https://api.github.com/users/Jiasm/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T02:32:18Z","updated_at":"2018-04-27T02:32:18Z","author_association":"NONE","body":"@sunhengzhe 好BT的游戏规则。。容我听首歌想一下"}}
{"actor":{"display_login":"Jiasm"}}