{"action":"created","comment":{"url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments/91263095","pull_request_review_id":11769893,"id":91263095,"diff_hunk":"@@ -111,11 +112,12 @@ console.log(values.indexOf(-0));        // 1\n console.log(values.includes(-0));       // true\n ```\n \n-Here, both `indexOf()` and `includes()` find `+0` when `-0` is passed because the two values are considered equal. Note that this is different than the behavior of the `Object.is()` method, which considers `+0` and `-0` to be different values.\n+Тут, і метод `indexOf()`, і метод `includes()` знаходять `+0`, коли передається `-0`, тому що обидва значення вважаються однаковими. Зауважте, що це відрізняється від поведінки метода `Object.is()`, який вважає `+0` та `-0` різними значеннями.\n \n+## Зміни й строгому режимі у функціональної області видимості\n ## Change to Function-Scoped Strict Mode\n \n-When strict mode was introduced in ECMAScript 5, the language was quite a bit simpler than it became in ECMAScript 6. Despite that, ECMAScript 6 still allowed you to specify strict mode using the `\"use strict\"` directive either in the global scope (which would make all code run in strict mode) or in a function scope (so only the function would run in strict mode). The latter ended up being a problem in ECMAScript 6 due to the more complex ways that parameters could be defined, specifically, with destructuring and default parameter values. To understand the problem, consider the following code:\n+Коли ECMAScript 5 ввів строгий режим, мова була дещо простішою ніж вона стала з приходом ECMAScript 6. Не зважаючи на це, ECMAScript 6 дозволяв використовувати строгий режим через використання дерективи `\"use strict\"` у глобальні області видимості (що запустило б весь код у строгому режимі) або у функціональній області видимості (так щоб лише функція запускалась у строгому режимі). Останній спосіб був проблематичним у ECMAScript 6 через більш складні способи визначення параметрів, наприклад, з деструктуруванням, значеннями параметрів за замовчуванням. Щоб зрозуміти проблему, розгляньте такий код:","path":"manuscript/B-ECMAScript-7.md","position":null,"original_position":147,"commit_id":"98c9b74bda60896b07ffaa36969d17cf534bff99","original_commit_id":"98c9b74bda60896b07ffaa36969d17cf534bff99","user":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-12-07T10:18:48Z","updated_at":"2016-12-07T10:20:43Z","html_url":"https://github.com/denysdovhan/understandinges6ua/pull/47#discussion_r91263095","pull_request_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments/91263095"},"html":{"href":"https://github.com/denysdovhan/understandinges6ua/pull/47#discussion_r91263095"},"pull_request":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/47","id":81634463,"html_url":"https://github.com/denysdovhan/understandinges6ua/pull/47","diff_url":"https://github.com/denysdovhan/understandinges6ua/pull/47.diff","patch_url":"https://github.com/denysdovhan/understandinges6ua/pull/47.patch","issue_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/47","number":47,"state":"open","locked":false,"title":"Translate “Appendix B: ECMAScript 7”","user":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"body":"Translate [`B-ECMAScript-7.md`](https://github.com/nzakas/understandinges6/blob/master/manuscript/B-ECMAScript-7.md).\n","created_at":"2016-08-17T12:34:42Z","updated_at":"2016-12-07T10:20:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9016b09ebf7e3d695074052fc161642d313e3119","assignee":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"assignees":[{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/47/commits","review_comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/47/comments","review_comment_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments{/number}","comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/47/comments","statuses_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/98c9b74bda60896b07ffaa36969d17cf534bff99","head":{"label":"denysdovhan:b-es7","ref":"b-es7","sha":"98c9b74bda60896b07ffaa36969d17cf534bff99","user":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"repo":{"id":49322520,"name":"understandinges6ua","full_name":"denysdovhan/understandinges6ua","owner":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/denysdovhan/understandinges6ua","description":"Ukrainian translation of “Understanding ES6” by @nzakas","fork":false,"url":"https://api.github.com/repos/denysdovhan/understandinges6ua","forks_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/forks","keys_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/teams","hooks_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/hooks","issue_events_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/events{/number}","events_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/events","assignees_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/assignees{/user}","branches_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/branches{/branch}","tags_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/tags","blobs_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/refs{/sha}","trees_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/{sha}","languages_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/languages","stargazers_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/stargazers","contributors_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/contributors","subscribers_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/subscribers","subscription_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/subscription","commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/commits{/sha}","git_commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/commits{/sha}","comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/comments{/number}","issue_comment_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/comments{/number}","contents_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/contents/{+path}","compare_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/merges","archive_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/downloads","issues_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues{/number}","pulls_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls{/number}","milestones_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/milestones{/number}","notifications_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/labels{/name}","releases_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/releases{/id}","deployments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/deployments","created_at":"2016-01-09T11:57:24Z","updated_at":"2016-11-26T23:48:54Z","pushed_at":"2016-12-03T11:56:18Z","git_url":"git://github.com/denysdovhan/understandinges6ua.git","ssh_url":"git@github.com:denysdovhan/understandinges6ua.git","clone_url":"https://github.com/denysdovhan/understandinges6ua.git","svn_url":"https://github.com/denysdovhan/understandinges6ua","homepage":"http://understandinges6.denysdovhan.com","size":6845,"stargazers_count":35,"watchers_count":35,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":8,"forks":12,"open_issues":8,"watchers":35,"default_branch":"master"}},"base":{"label":"denysdovhan:master","ref":"master","sha":"77736e19ba20d797ead7d018981610fe4a0ec446","user":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"repo":{"id":49322520,"name":"understandinges6ua","full_name":"denysdovhan/understandinges6ua","owner":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/denysdovhan/understandinges6ua","description":"Ukrainian translation of “Understanding ES6” by @nzakas","fork":false,"url":"https://api.github.com/repos/denysdovhan/understandinges6ua","forks_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/forks","keys_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/teams","hooks_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/hooks","issue_events_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/events{/number}","events_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/events","assignees_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/assignees{/user}","branches_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/branches{/branch}","tags_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/tags","blobs_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/refs{/sha}","trees_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/{sha}","languages_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/languages","stargazers_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/stargazers","contributors_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/contributors","subscribers_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/subscribers","subscription_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/subscription","commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/commits{/sha}","git_commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/commits{/sha}","comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/comments{/number}","issue_comment_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/comments{/number}","contents_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/contents/{+path}","compare_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/merges","archive_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/downloads","issues_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues{/number}","pulls_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls{/number}","milestones_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/milestones{/number}","notifications_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/labels{/name}","releases_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/releases{/id}","deployments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/deployments","created_at":"2016-01-09T11:57:24Z","updated_at":"2016-11-26T23:48:54Z","pushed_at":"2016-12-03T11:56:18Z","git_url":"git://github.com/denysdovhan/understandinges6ua.git","ssh_url":"git@github.com:denysdovhan/understandinges6ua.git","clone_url":"https://github.com/denysdovhan/understandinges6ua.git","svn_url":"https://github.com/denysdovhan/understandinges6ua","homepage":"http://understandinges6.denysdovhan.com","size":6845,"stargazers_count":35,"watchers_count":35,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":8,"forks":12,"open_issues":8,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/47"},"html":{"href":"https://github.com/denysdovhan/understandinges6ua/pull/47"},"issue":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/47"},"comments":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/98c9b74bda60896b07ffaa36969d17cf534bff99"}}}}
{"actor":{"display_login":"denysdovhan"}}