{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9944","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9944/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9944/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9944/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9944","id":168242620,"number":9944,"title":"Challenge way to easy","user":{"login":"FatKoala","id":20527836,"avatar_url":"https://avatars.githubusercontent.com/u/20527836?v=3","gravatar_id":"","url":"https://api.github.com/users/FatKoala","html_url":"https://github.com/FatKoala","followers_url":"https://api.github.com/users/FatKoala/followers","following_url":"https://api.github.com/users/FatKoala/following{/other_user}","gists_url":"https://api.github.com/users/FatKoala/gists{/gist_id}","starred_url":"https://api.github.com/users/FatKoala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FatKoala/subscriptions","organizations_url":"https://api.github.com/users/FatKoala/orgs","repos_url":"https://api.github.com/users/FatKoala/repos","events_url":"https://api.github.com/users/FatKoala/events{/privacy}","received_events_url":"https://api.github.com/users/FatKoala/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/confirmed","name":"confirmed","color":"ededed"},{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-29T03:17:52Z","updated_at":"2016-07-31T14:38:45Z","closed_at":null,"body":"Challenge [Slasher Flick](https://www.freecodecamp.com/challenges/slasher-flick) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36</code>.\r\nThis challenge can be solved in one line of code. Is it intended that way? If yes than ok. If not, note that suggested method is actually a solution.\r\n\r\nMy code:\r\n```javascript\r\n\r\nfunction slasher(arr, howMany) {\r\n  // it doesn't always pay to be first\r\n  var arr2 = arr.slice(howMany);\r\n  return arr2;\r\n}\r\n\r\nslasher([1, 2, 3], 2);\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/236433444","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9944#issuecomment-236433444","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9944","id":236433444,"user":{"login":"BKinahan","id":15965601,"avatar_url":"https://avatars.githubusercontent.com/u/15965601?v=3","gravatar_id":"","url":"https://api.github.com/users/BKinahan","html_url":"https://github.com/BKinahan","followers_url":"https://api.github.com/users/BKinahan/followers","following_url":"https://api.github.com/users/BKinahan/following{/other_user}","gists_url":"https://api.github.com/users/BKinahan/gists{/gist_id}","starred_url":"https://api.github.com/users/BKinahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BKinahan/subscriptions","organizations_url":"https://api.github.com/users/BKinahan/orgs","repos_url":"https://api.github.com/users/BKinahan/repos","events_url":"https://api.github.com/users/BKinahan/events{/privacy}","received_events_url":"https://api.github.com/users/BKinahan/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T14:38:45Z","updated_at":"2016-07-31T14:38:45Z","body":"Here's a rough draft of a frankenSplice challenge, feedback appreciated!\r\n\r\n```js\r\n\r\n// Use slice() and splice() to insert the elements of the first array into the second, starting at index n of the second array.\r\n// Optional objective: Do not mutate the input arrays.\r\n\r\n// Solution (with optional objective)\r\nconst frankenSplice = (arr1,arr2,n) => {\r\n\tlet r = arr2.slice();\r\n\tfor (let i = 0; i<arr1.length;i++){\r\n\t\tr.splice(n+i,0,arr1[i]);\r\n\t}\r\n\treturn r;\r\n};\r\n\r\na = [1,2,3];\r\nb = [\"c\",\"d\",\"e\",\"f\"];\r\n\r\nfrankenSplice(a,b,1); // [ 'c', 'd', 1, 2, 3, 'e', 'f' ]\r\nconsole.log(a); // [ 1, 2, 3 ]\r\nconsole.log(b); // [ 'c', 'd', 'e', 'f' ] // Input arrays remain intact\r\n```"}}
{"actor":{"display_login":"BKinahan"}}