{"action":"closed","issue":{"url":"https://api.github.com/repos/airbnb/javascript/issues/999","repository_url":"https://api.github.com/repos/airbnb/javascript","labels_url":"https://api.github.com/repos/airbnb/javascript/issues/999/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/javascript/issues/999/comments","events_url":"https://api.github.com/repos/airbnb/javascript/issues/999/events","html_url":"https://github.com/airbnb/javascript/issues/999","id":169440423,"number":999,"title":"Add topic about spread over apply","user":{"login":"felipethome","id":4316501,"avatar_url":"https://avatars.githubusercontent.com/u/4316501?v=3","gravatar_id":"","url":"https://api.github.com/users/felipethome","html_url":"https://github.com/felipethome","followers_url":"https://api.github.com/users/felipethome/followers","following_url":"https://api.github.com/users/felipethome/following{/other_user}","gists_url":"https://api.github.com/users/felipethome/gists{/gist_id}","starred_url":"https://api.github.com/users/felipethome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipethome/subscriptions","organizations_url":"https://api.github.com/users/felipethome/orgs","repos_url":"https://api.github.com/users/felipethome/repos","events_url":"https://api.github.com/users/felipethome/events{/privacy}","received_events_url":"https://api.github.com/users/felipethome/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/airbnb/javascript/labels/editorial","name":"editorial","color":"bfe5bf"},{"url":"https://api.github.com/repos/airbnb/javascript/labels/pull%20request%20wanted","name":"pull request wanted","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-04T18:20:58Z","updated_at":"2016-09-25T04:46:28Z","closed_at":"2016-09-25T04:46:28Z","body":"Add a topic, maybe in section 7 (Functions), about using spread operator `...` instead of `apply()`. Like:\r\n\r\n// bad\r\nvar args = [1, 2, 3, 4];\r\nMath.max.apply(Math, args);\r\n\r\n// good\r\nvar args = [1, 2, 3, 4];\r\nMath.max(...args);\r\n\r\nRelated ESlint rule: `prefer-spread`\r\n\r\nDon know if worth adding this, because my reason would be just: it is cleaner this way."}}
{"actor":{"display_login":"ljharb"}}