{"action":"created","issue":{"url":"https://api.github.com/repos/mindeavor/es-papp/issues/1","repository_url":"https://api.github.com/repos/mindeavor/es-papp","labels_url":"https://api.github.com/repos/mindeavor/es-papp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mindeavor/es-papp/issues/1/comments","events_url":"https://api.github.com/repos/mindeavor/es-papp/issues/1/events","html_url":"https://github.com/mindeavor/es-papp/pull/1","id":160444344,"number":1,"title":"Simplify ES6 polyfill","user":{"login":"steelbrain","id":4278113,"avatar_url":"https://avatars.githubusercontent.com/u/4278113?v=3","gravatar_id":"","url":"https://api.github.com/users/steelbrain","html_url":"https://github.com/steelbrain","followers_url":"https://api.github.com/users/steelbrain/followers","following_url":"https://api.github.com/users/steelbrain/following{/other_user}","gists_url":"https://api.github.com/users/steelbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/steelbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelbrain/subscriptions","organizations_url":"https://api.github.com/users/steelbrain/orgs","repos_url":"https://api.github.com/users/steelbrain/repos","events_url":"https://api.github.com/users/steelbrain/events{/privacy}","received_events_url":"https://api.github.com/users/steelbrain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-15T14:59:41Z","updated_at":"2016-06-16T21:41:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mindeavor/es-papp/pulls/1","html_url":"https://github.com/mindeavor/es-papp/pull/1","diff_url":"https://github.com/mindeavor/es-papp/pull/1.diff","patch_url":"https://github.com/mindeavor/es-papp/pull/1.patch"},"body":"Compiled output before\r\n```js\r\nFunction.prototype.papp = function () {\r\n  for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\r\n    args[_key] = arguments[_key];\r\n  }\r\n\r\n  var fn = this;\r\n  return function () {\r\n    for (var _len2 = arguments.length, moreArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\r\n      moreArgs[_key2] = arguments[_key2];\r\n    }\r\n\r\n    fn.call.apply(fn, [this].concat(args, moreArgs));\r\n  };\r\n};\r\n```\r\nCompiled output after\r\n```js\r\n\"use strict\";\r\n\r\nFunction.prototype.papp = function () {\r\n  for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\r\n    args[_key] = arguments[_key];\r\n  }\r\n\r\n  var fn = this;\r\n  return function () {\r\n    for (var _len2 = arguments.length, moreArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\r\n      moreArgs[_key2] = arguments[_key2];\r\n    }\r\n\r\n    fn.apply([this].concat(args, moreArgs));\r\n  };\r\n};\r\n```\r\nBenefits: Instead of having to do `fn.call.apply(fn, ...args)`, we just directly do `fn.apply(...args)`\r\n"},"comment":{"url":"https://api.github.com/repos/mindeavor/es-papp/issues/comments/226622239","html_url":"https://github.com/mindeavor/es-papp/pull/1#issuecomment-226622239","issue_url":"https://api.github.com/repos/mindeavor/es-papp/issues/1","id":226622239,"user":{"login":"mindeavor","id":17013,"avatar_url":"https://avatars.githubusercontent.com/u/17013?v=3","gravatar_id":"","url":"https://api.github.com/users/mindeavor","html_url":"https://github.com/mindeavor","followers_url":"https://api.github.com/users/mindeavor/followers","following_url":"https://api.github.com/users/mindeavor/following{/other_user}","gists_url":"https://api.github.com/users/mindeavor/gists{/gist_id}","starred_url":"https://api.github.com/users/mindeavor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindeavor/subscriptions","organizations_url":"https://api.github.com/users/mindeavor/orgs","repos_url":"https://api.github.com/users/mindeavor/repos","events_url":"https://api.github.com/users/mindeavor/events{/privacy}","received_events_url":"https://api.github.com/users/mindeavor/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T21:41:22Z","updated_at":"2016-06-16T21:41:22Z","body":"Great, thanks!"}}
{"actor":{"display_login":"mindeavor"}}