{"action":"created","comment":{"url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/comments/257531854","pull_request_review_id":204589705,"id":257531854,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NzUzMTg1NA==","diff_hunk":"@@ -33,4 +53,22 @@\n  *   - その他\n  *     - 「Array.prototype.sort()」を使う\n  *       - https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/sort\n- */\n\\ No newline at end of file\n+ */\n+sortNumbers = (_numbers) => {","path":"main.js","position":36,"original_position":36,"commit_id":"c076b19866e47777e2a092ebf79cb72896d87be3","original_commit_id":"c076b19866e47777e2a092ebf79cb72896d87be3","user":{"login":"tsuyopon-xyz","id":43132642,"node_id":"MDQ6VXNlcjQzMTMyNjQy","avatar_url":"https://avatars0.githubusercontent.com/u/43132642?v=4","gravatar_id":"","url":"https://api.github.com/users/tsuyopon-xyz","html_url":"https://github.com/tsuyopon-xyz","followers_url":"https://api.github.com/users/tsuyopon-xyz/followers","following_url":"https://api.github.com/users/tsuyopon-xyz/following{/other_user}","gists_url":"https://api.github.com/users/tsuyopon-xyz/gists{/gist_id}","starred_url":"https://api.github.com/users/tsuyopon-xyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsuyopon-xyz/subscriptions","organizations_url":"https://api.github.com/users/tsuyopon-xyz/orgs","repos_url":"https://api.github.com/users/tsuyopon-xyz/repos","events_url":"https://api.github.com/users/tsuyopon-xyz/events{/privacy}","received_events_url":"https://api.github.com/users/tsuyopon-xyz/received_events","type":"User","site_admin":false},"body":"`const` をつけるようにお願いしますmm","created_at":"2019-02-18T00:17:25Z","updated_at":"2019-02-18T00:17:25Z","html_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10/pull/1#discussion_r257531854","pull_request_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/comments/257531854"},"html":{"href":"https://github.com/0209Eugene/js_excercise_for_grammar_10/pull/1#discussion_r257531854"},"pull_request":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/1","id":253745270,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUzNzQ1Mjcw","html_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10/pull/1","diff_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10/pull/1.diff","patch_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10/pull/1.patch","issue_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues/1","number":1,"state":"open","locked":false,"title":"complete assignment","user":{"login":"0209Eugene","id":43115891,"node_id":"MDQ6VXNlcjQzMTE1ODkx","avatar_url":"https://avatars0.githubusercontent.com/u/43115891?v=4","gravatar_id":"","url":"https://api.github.com/users/0209Eugene","html_url":"https://github.com/0209Eugene","followers_url":"https://api.github.com/users/0209Eugene/followers","following_url":"https://api.github.com/users/0209Eugene/following{/other_user}","gists_url":"https://api.github.com/users/0209Eugene/gists{/gist_id}","starred_url":"https://api.github.com/users/0209Eugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0209Eugene/subscriptions","organizations_url":"https://api.github.com/users/0209Eugene/orgs","repos_url":"https://api.github.com/users/0209Eugene/repos","events_url":"https://api.github.com/users/0209Eugene/events{/privacy}","received_events_url":"https://api.github.com/users/0209Eugene/received_events","type":"User","site_admin":false},"body":"課題終えました。レビューお願いします。\r\n正直、 sortメソッドのif文の中身(特になぜreturn 1、-1なのか)がMDNを読んでもいまいち分からなかったので、噛み砕いて例などつけて説明いただけると有り難いです。\r\ncopiedNumbers.sort((a, b) => {\r\n        if (a > b) {\r\n            return 1;\r\n        }\r\n        if (a < b) {\r\n            return -1;\r\n        }\r\n        return 0;\r\n    });","created_at":"2019-02-17T22:29:45Z","updated_at":"2019-02-18T00:17:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c67de2ab5cb91ac81ef7d5bb53f77bb192ad938b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/1/commits","review_comments_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/1/comments","review_comment_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/comments{/number}","comments_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues/1/comments","statuses_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/statuses/c076b19866e47777e2a092ebf79cb72896d87be3","head":{"label":"0209Eugene:create_functions","ref":"create_functions","sha":"c076b19866e47777e2a092ebf79cb72896d87be3","user":{"login":"0209Eugene","id":43115891,"node_id":"MDQ6VXNlcjQzMTE1ODkx","avatar_url":"https://avatars0.githubusercontent.com/u/43115891?v=4","gravatar_id":"","url":"https://api.github.com/users/0209Eugene","html_url":"https://github.com/0209Eugene","followers_url":"https://api.github.com/users/0209Eugene/followers","following_url":"https://api.github.com/users/0209Eugene/following{/other_user}","gists_url":"https://api.github.com/users/0209Eugene/gists{/gist_id}","starred_url":"https://api.github.com/users/0209Eugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0209Eugene/subscriptions","organizations_url":"https://api.github.com/users/0209Eugene/orgs","repos_url":"https://api.github.com/users/0209Eugene/repos","events_url":"https://api.github.com/users/0209Eugene/events{/privacy}","received_events_url":"https://api.github.com/users/0209Eugene/received_events","type":"User","site_admin":false},"repo":{"id":171084630,"node_id":"MDEwOlJlcG9zaXRvcnkxNzEwODQ2MzA=","name":"js_excercise_for_grammar_10","full_name":"0209Eugene/js_excercise_for_grammar_10","private":false,"owner":{"login":"0209Eugene","id":43115891,"node_id":"MDQ6VXNlcjQzMTE1ODkx","avatar_url":"https://avatars0.githubusercontent.com/u/43115891?v=4","gravatar_id":"","url":"https://api.github.com/users/0209Eugene","html_url":"https://github.com/0209Eugene","followers_url":"https://api.github.com/users/0209Eugene/followers","following_url":"https://api.github.com/users/0209Eugene/following{/other_user}","gists_url":"https://api.github.com/users/0209Eugene/gists{/gist_id}","starred_url":"https://api.github.com/users/0209Eugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0209Eugene/subscriptions","organizations_url":"https://api.github.com/users/0209Eugene/orgs","repos_url":"https://api.github.com/users/0209Eugene/repos","events_url":"https://api.github.com/users/0209Eugene/events{/privacy}","received_events_url":"https://api.github.com/users/0209Eugene/received_events","type":"User","site_admin":false},"html_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10","description":"Web白熱教室のJavaScriptの学習コンテンツの1つ『【エクササイズ】JavaScriptの配列を引数にした関数を作る【参照の理解度チェック】』の課題レポジトリ","fork":true,"url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10","forks_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/forks","keys_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/teams","hooks_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/hooks","issue_events_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues/events{/number}","events_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/events","assignees_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/assignees{/user}","branches_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/branches{/branch}","tags_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/tags","blobs_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/refs{/sha}","trees_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/statuses/{sha}","languages_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/languages","stargazers_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/stargazers","contributors_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/contributors","subscribers_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/subscribers","subscription_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/subscription","commits_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/commits{/sha}","git_commits_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/commits{/sha}","comments_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/comments{/number}","issue_comment_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues/comments{/number}","contents_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/contents/{+path}","compare_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/merges","archive_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/downloads","issues_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues{/number}","pulls_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls{/number}","milestones_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/milestones{/number}","notifications_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/labels{/name}","releases_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/releases{/id}","deployments_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/deployments","created_at":"2019-02-17T05:15:50Z","updated_at":"2019-02-17T05:15:53Z","pushed_at":"2019-02-17T22:29:46Z","git_url":"git://github.com/0209Eugene/js_excercise_for_grammar_10.git","ssh_url":"git@github.com:0209Eugene/js_excercise_for_grammar_10.git","clone_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10.git","svn_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10","homepage":"https://tsuyopon.xyz/learning-contents/web-dev/javascript/javascript-grammar/js_excercise_for_grammar_part_10/","size":59,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"0209Eugene:master","ref":"master","sha":"92f5dc1da23833c4ba9258a3bf1974c46c3f275a","user":{"login":"0209Eugene","id":43115891,"node_id":"MDQ6VXNlcjQzMTE1ODkx","avatar_url":"https://avatars0.githubusercontent.com/u/43115891?v=4","gravatar_id":"","url":"https://api.github.com/users/0209Eugene","html_url":"https://github.com/0209Eugene","followers_url":"https://api.github.com/users/0209Eugene/followers","following_url":"https://api.github.com/users/0209Eugene/following{/other_user}","gists_url":"https://api.github.com/users/0209Eugene/gists{/gist_id}","starred_url":"https://api.github.com/users/0209Eugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0209Eugene/subscriptions","organizations_url":"https://api.github.com/users/0209Eugene/orgs","repos_url":"https://api.github.com/users/0209Eugene/repos","events_url":"https://api.github.com/users/0209Eugene/events{/privacy}","received_events_url":"https://api.github.com/users/0209Eugene/received_events","type":"User","site_admin":false},"repo":{"id":171084630,"node_id":"MDEwOlJlcG9zaXRvcnkxNzEwODQ2MzA=","name":"js_excercise_for_grammar_10","full_name":"0209Eugene/js_excercise_for_grammar_10","private":false,"owner":{"login":"0209Eugene","id":43115891,"node_id":"MDQ6VXNlcjQzMTE1ODkx","avatar_url":"https://avatars0.githubusercontent.com/u/43115891?v=4","gravatar_id":"","url":"https://api.github.com/users/0209Eugene","html_url":"https://github.com/0209Eugene","followers_url":"https://api.github.com/users/0209Eugene/followers","following_url":"https://api.github.com/users/0209Eugene/following{/other_user}","gists_url":"https://api.github.com/users/0209Eugene/gists{/gist_id}","starred_url":"https://api.github.com/users/0209Eugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0209Eugene/subscriptions","organizations_url":"https://api.github.com/users/0209Eugene/orgs","repos_url":"https://api.github.com/users/0209Eugene/repos","events_url":"https://api.github.com/users/0209Eugene/events{/privacy}","received_events_url":"https://api.github.com/users/0209Eugene/received_events","type":"User","site_admin":false},"html_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10","description":"Web白熱教室のJavaScriptの学習コンテンツの1つ『【エクササイズ】JavaScriptの配列を引数にした関数を作る【参照の理解度チェック】』の課題レポジトリ","fork":true,"url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10","forks_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/forks","keys_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/teams","hooks_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/hooks","issue_events_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues/events{/number}","events_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/events","assignees_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/assignees{/user}","branches_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/branches{/branch}","tags_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/tags","blobs_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/refs{/sha}","trees_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/statuses/{sha}","languages_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/languages","stargazers_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/stargazers","contributors_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/contributors","subscribers_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/subscribers","subscription_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/subscription","commits_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/commits{/sha}","git_commits_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/git/commits{/sha}","comments_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/comments{/number}","issue_comment_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues/comments{/number}","contents_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/contents/{+path}","compare_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/merges","archive_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/downloads","issues_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues{/number}","pulls_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls{/number}","milestones_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/milestones{/number}","notifications_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/labels{/name}","releases_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/releases{/id}","deployments_url":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/deployments","created_at":"2019-02-17T05:15:50Z","updated_at":"2019-02-17T05:15:53Z","pushed_at":"2019-02-17T22:29:46Z","git_url":"git://github.com/0209Eugene/js_excercise_for_grammar_10.git","ssh_url":"git@github.com:0209Eugene/js_excercise_for_grammar_10.git","clone_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10.git","svn_url":"https://github.com/0209Eugene/js_excercise_for_grammar_10","homepage":"https://tsuyopon.xyz/learning-contents/web-dev/javascript/javascript-grammar/js_excercise_for_grammar_part_10/","size":59,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/1"},"html":{"href":"https://github.com/0209Eugene/js_excercise_for_grammar_10/pull/1"},"issue":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues/1"},"comments":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/0209Eugene/js_excercise_for_grammar_10/statuses/c076b19866e47777e2a092ebf79cb72896d87be3"}},"author_association":"OWNER"}}
{"actor":{"display_login":"tsuyopon-xyz"}}