-
Notifications
You must be signed in to change notification settings - Fork 0
/
b566d906.4de423ee.js
1 lines (1 loc) · 55.2 KB
/
b566d906.4de423ee.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[77],{133:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return l})),n.d(t,"metadata",(function(){return c})),n.d(t,"rightToc",(function(){return i})),n.d(t,"default",(function(){return o}));var a=n(2),r=n(6),b=(n(0),n(173)),l={id:"javascript19",title:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b Rest \u0438 Spread",sidebar_label:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b Rest \u0438 Spread"},c={unversionedId:"javascript19",id:"javascript19",isDocsHomePage:!1,title:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b Rest \u0438 Spread",description:"\u041c\u043d\u043e\u0433\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 JavaScript \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.",source:"@site/docs/javascript19.md",slug:"/javascript19",permalink:"/docs/javascript19",editUrl:"https://github.com/facebook/docusaurus/edit/master/website/docs/javascript19.md",version:"current",sidebar_label:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b Rest \u0438 Spread",sidebar:"someSidebar",previous:{title:"\u041c\u0430\u0441\u0441\u0438\u0432\u044b \u0438 \u043f\u0441\u0435\u0432\u0434\u043e\u043c\u0430\u0441\u0441\u0438\u0432\u044b",permalink:"/docs/javascript18"},next:{title:"\u0417\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435",permalink:"/docs/javascript20"}},i=[{value:"\u041e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <code>(...rest)</code>",id:"\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b-rest",children:[{value:"\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f ES6",id:"\u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f-es6",children:[]},{value:"\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432",id:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432",children:[]},{value:"\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438",id:"\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435-\u043e\u0448\u0438\u0431\u043a\u0438",children:[]},{value:"\u041e\u043f\u0430\u0441\u043d\u044b\u0439 "arguments"",id:"\u043e\u043f\u0430\u0441\u043d\u044b\u0439-arguments",children:[]}]},{value:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f <code>...Spread</code>",id:"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440-\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f-spread",children:[{value:"\u041d\u0435 \u0442\u0430\u043a \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e",id:"\u043d\u0435-\u0442\u0430\u043a-\u0432\u0441\u0435-\u043f\u0440\u043e\u0441\u0442\u043e",children:[]},{value:"\u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432",id:"\u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432",children:[]},{value:"\u0421\u043b\u0438\u044f\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432",id:"\u0441\u043b\u0438\u044f\u043d\u0438\u044f-\u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432",children:[]},{value:"\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443",id:"\u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435-\u0432-\u0441\u0442\u0440\u043e\u043a\u0443",children:[]}]},{value:"\u0418\u0442\u043e\u0433\u043e",id:"\u0438\u0442\u043e\u0433\u043e",children:[]},{value:"\u0411\u043e\u043d\u0443\u0441",id:"\u0431\u043e\u043d\u0443\u0441",children:[]},{value:"\u0412\u043e\u043f\u0440\u043e\u0441\u044b",id:"\u0432\u043e\u043f\u0440\u043e\u0441\u044b",children:[]},{value:"\u0421\u0441\u044b\u043b\u043a\u0438",id:"\u0441\u0441\u044b\u043b\u043a\u0438",children:[]},{value:"Contributors \u2728",id:"contributors-",children:[]}],p={rightToc:i};function o(e){var t=e.components,l=Object(r.a)(e,["components"]);return Object(b.b)("wrapper",Object(a.a)({},p,l,{components:t,mdxType:"MDXLayout"}),Object(b.b)("p",null,"\u041c\u043d\u043e\u0433\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 JavaScript \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432."),Object(b.b)("p",null,"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:"),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"Math.max(arg1, arg2, ..., argN)")," \u2013 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438\u0437 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445."),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"Math.min()")," - \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u043b\u044e\u0431\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0445\u043e\u0442\u044c \u0441 0, 2-\u043c\u044f \u0438\u043b\u0438 7-\u044e."),Object(b.b)("p",null,"\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0443\u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u0438 \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430."),Object(b.b)("h2",{id:"\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b-rest"},"\u041e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b ",Object(b.b)("inlineCode",{parentName:"h2"},"(...rest)")),Object(b.b)("p",null,"\u0412\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0441 ",Object(b.b)("inlineCode",{parentName:"p"},"\u043b\u044e\u0431\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432")," \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u043d\u0430 \u0431\u044b\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430."),Object(b.b)("p",null,"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let summa = (a, b, c) => {\n return a + b + c\n } // \u0421\u0443\u043c\u043c\u0430 3-\u0445 \u0447\u0438\u0441\u0435\u043b\n\n return summa(1, 2, 3, 4, 5, 6, 7)\n}\n")),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"\u041b\u0438\u0448\u043d\u0438\u0435")," \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b ",Object(b.b)("inlineCode",{parentName:"p"},"\u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u0443\u0442 \u043e\u0448\u0438\u0431\u043a\u0443"),". \u041d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0435 \u0442\u0440\u0438."),Object(b.b)("h3",{id:"\u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f-es6"},"\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f ES6"),Object(b.b)("p",null,"\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430 ES6 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f, \u043a\u0430\u043a ",Object(b.b)("inlineCode",{parentName:"p"},"...rest")," - \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b."),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx"}),"let goFun = (...rest) => {\n // \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c\n}\n")),Object(b.b)("p",null,"\u0421\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0447\u0435\u0440\u0435\u0437 \u0442\u0440\u0438 \u0442\u043e\u0447\u043a\u0438 ",Object(b.b)("inlineCode",{parentName:"p"},"..."),". \u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442: ",Object(b.b)("inlineCode",{parentName:"p"},"\xab\u0441\u043e\u0431\u0435\u0440\u0438 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u043f\u043e\u043b\u043e\u0436\u0438 \u0438\u0445 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\xbb"),"."),Object(b.b)("p",null,"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0431\u0435\u0440\u0451\u043c \u0432\u0441\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 ",Object(b.b)("inlineCode",{parentName:"p"},"args"),":"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let sumAll = (...args) => {\n // args \u2014 \u0438\u043c\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432\n let sum = 0\n for (let arg of args) if (typeof arg === 'number') sum += arg // sum - \u0441\u043e\u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0441\u0443\u043c\u043c\u0430 \u0432\u0441\u0435\u0445 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432\n return sum\n }\n return sumAll(1, 2, 3, 4, 5, 6, 7, 'React', 'Native')\n}\n")),Object(b.b)("p",null,"\u041e\u0442\u0432\u0435\u0442 \u0443\u0436\u0435 28 \u0438 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a! \u041f\u043e\u0434\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u0430."),Object(b.b)("h3",{id:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432"},"\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432"),Object(b.b)("p",null,"\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u2013 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432.\n\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0432\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c ",Object(b.b)("inlineCode",{parentName:"p"},"...rest"),", \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438."),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx"}),"let goFun = (first, second, ...rest) => {\n // \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c\n}\n")),Object(b.b)("p",null,"\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0438\u0436\u0435 \u043f\u0435\u0440\u0432\u044b\u0435 \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u0443\u0442 \u0438\u043c\u0435\u043d\u0435\u043c \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u0435\u0439, \u0430 \u0442\u0440\u0435\u0442\u0438\u0439 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u044f\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 ",Object(b.b)("inlineCode",{parentName:"p"},"titles[i]"),":"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let free = ''\n let showName = (firstName, lastName, ...titles) => {\n free = firstName + ' ' + lastName // \u0418\u043c\u044f + \u0424\u0430\u043c\u0438\u043b\u0438\u044f\n return titles[0] + ' ' + titles[1]\n }\n // \u041e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0439\u0434\u0443\u0442 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 titles = [\"React\", \"Native\"]\n // titles[0] // React\n // titles[1] // Native\n\n let result = showName('\u042e\u043b\u0438\u0439', '\u0426\u0435\u0437\u0430\u0440\u044c', 'React', 'Native')\n\n return free + ' \u0438\u043b\u0438 ' + result\n}\n")),Object(b.b)("h3",{id:"\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435-\u043e\u0448\u0438\u0431\u043a\u0438"},"\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438"),Object(b.b)("p",null,"\u041e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u043f\u043e\u0441\u043b\u0435 \u043d\u0438\u0445.\n\u042d\u0442\u043e \u0432\u044b\u0437\u043e\u0432\u0435\u0442 ",Object(b.b)("inlineCode",{parentName:"p"},"\u043e\u0448\u0438\u0431\u043a\u0443"),":"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx"}),"function f(arg1, ...rest, arg2) { // arg2 \u043f\u043e\u0441\u043b\u0435 ...rest ?\n // \u041e\u0448\u0438\u0431\u043a\u0430!\n}\n")),Object(b.b)("div",{className:"admonition admonition-note alert alert--secondary"},Object(b.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-heading"}),Object(b.b)("h5",{parentName:"div"},Object(b.b)("span",Object(a.a)({parentName:"h5"},{className:"admonition-icon"}),Object(b.b)("svg",Object(a.a)({parentName:"span"},{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"}),Object(b.b)("path",Object(a.a)({parentName:"svg"},{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})))),"\u0417\u0430\u043f\u043e\u043c\u043d\u0438")),Object(b.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-content"}),Object(b.b)("p",{parentName:"div"},Object(b.b)("inlineCode",{parentName:"p"},"...rest")," \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u044b\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c."))),Object(b.b)("h3",{id:"\u043e\u043f\u0430\u0441\u043d\u044b\u0439-arguments"},'\u041e\u043f\u0430\u0441\u043d\u044b\u0439 "arguments"'),Object(b.b)("p",null,"\u0412\u0441\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043f\u0441\u0435\u0432\u0434\u043e\u043c\u0430\u0441\u0441\u0438\u0432\u0435 ",Object(b.b)("inlineCode",{parentName:"p"},"arguments")," \u043f\u043e\u0434 \u0441\u0432\u043e\u0438\u043c\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u043c\u0438 \u043d\u043e\u043c\u0435\u0440\u0430\u043c\u0438."),Object(b.b)("p",null,"\u041d\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u0447\u0435\u0440\u0435\u0437 \u043c\u0430\u0441\u0441\u0438\u0432 ",Object(b.b)("inlineCode",{parentName:"p"},"arguments[]")," \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u0442\u0430\u0440\u043e\u043c \u043a\u043e\u0434\u0435. \u041d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0435\u0433\u043e!"),Object(b.b)("div",{className:"admonition admonition-note alert alert--secondary"},Object(b.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-heading"}),Object(b.b)("h5",{parentName:"div"},Object(b.b)("span",Object(a.a)({parentName:"h5"},{className:"admonition-icon"}),Object(b.b)("svg",Object(a.a)({parentName:"span"},{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"}),Object(b.b)("path",Object(a.a)({parentName:"svg"},{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})))),"\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435")),Object(b.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-content"}),Object(b.b)("p",{parentName:"div"},"C\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 ",Object(b.b)("inlineCode",{parentName:"p"},"arguments[]")," \u043a\u0430\u043a \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e ",Object(b.b)("inlineCode",{parentName:"p"},"this.")))),Object(b.b)("p",null,"\u0415\u0441\u043b\u0438 \u043c\u044b \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a arguments \u0438\u0437 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \xab\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439\xbb \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b ",Object(b.b)("inlineCode",{parentName:"p"},"...rest"),"."),Object(b.b)("h2",{id:"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440-\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f-spread"},"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ",Object(b.b)("inlineCode",{parentName:"h2"},"...Spread")),Object(b.b)("p",null,"\u041c\u044b \u0443\u0437\u043d\u0430\u043b\u0438, \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432."),Object(b.b)("p",null,"\u041d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0435 - \u0437\u0430\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0432 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e."),Object(b.b)("p",null,"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f ",Object(b.b)("inlineCode",{parentName:"p"},"Math.max"),". \u041e\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n return Math.max(3, 5, 1, 17, 14, 8, 2, 11)\n}\n")),Object(b.b)("h3",{id:"\u043d\u0435-\u0442\u0430\u043a-\u0432\u0441\u0435-\u043f\u0440\u043e\u0441\u0442\u043e"},"\u041d\u0435 \u0442\u0430\u043a \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e"),Object(b.b)("p",null,"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0447\u0438\u0441\u0435\u043b ",Object(b.b)("inlineCode",{parentName:"p"},"[3, 5, 1]"),". \u041a\u0430\u043a \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0435\u0433\u043e ",Object(b.b)("inlineCode",{parentName:"p"},"Math.max"),"?"),Object(b.b)("p",null,"\u041f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u0438\u0445 \u043d\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0448\u044c \u2014 ",Object(b.b)("inlineCode",{parentName:"p"},"Math.max")," \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ",Object(b.b)("inlineCode",{parentName:"p"},"\u0441\u043f\u0438\u0441\u043e\u043a \u0447\u0438\u0441\u0435\u043b"),", \u0430 \u043d\u0435 \u043e\u0434\u0438\u043d \u043c\u0430\u0441\u0441\u0438\u0432."),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let arr = [3, 5, 1, 17, 14, 8, 2, 11]\n return Math.max(arr) // NaN - \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e\n}\n")),Object(b.b)("p",null,"\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e: ",Object(b.b)("inlineCode",{parentName:"p"},"Math.max(arr[0], arr[1], arr[2]).")),Object(b.b)("p",null,"\u041d\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u044d\u0442\u043e ",Object(b.b)("inlineCode",{parentName:"p"},"\u043f\u043b\u043e\u0445\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442"),", \u0430, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043c\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0437\u043d\u0430\u0435\u043c, ",Object(b.b)("inlineCode",{parentName:"p"},"\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0443\u0434\u0435\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.")," \u0418\u0445 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e, \u0442\u0430\u043a \u0438 \u043d\u0435 \u0431\u044b\u0442\u044c \u0441\u043e\u0432\u0441\u0435\u043c."),Object(b.b)("h3",{id:"\u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432"},"\u0412\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432"),Object(b.b)("p",null,"\u0422\u0443\u0442 \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 ",Object(b.b)("inlineCode",{parentName:"p"},"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ...Spread"),". \u041e\u043d \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u2013 \u0442\u043e\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 ",Object(b.b)("inlineCode",{parentName:"p"},"..."),", \u043d\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0435."),Object(b.b)("p",null,"\u041a\u043e\u0433\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b ",Object(b.b)("inlineCode",{parentName:"p"},"...Spread")," \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043e\u043d ",Object(b.b)("inlineCode",{parentName:"p"},"\u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442")," \u043c\u0430\u0441\u0441\u0438\u0432-\u043e\u0431\u044a\u0435\u043a\u0442 arr ",Object(b.b)("inlineCode",{parentName:"p"},"\u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.")),Object(b.b)("p",null,"\u0414\u043b\u044f Math.max:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let arr = [3, 5, 1, 17, 14, 8, 2, 11]\n\n return Math.max(...arr) // \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 ...arr \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 `arr` \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432\n}\n")),Object(b.b)("p",null,"\u042d\u0442\u0438\u043c \u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let arr1 = [1, 2, 34, 41]\n let arr2 = [8, 3, 18, 17]\n let arr3 = [2, 4, 16, 38]\n\n return 'Max = ' + Math.max(...arr1, ...arr2, ...arr3)\n}\n")),Object(b.b)("p",null,"\u041a\u0440\u0443\u0442\u043e! \u041e\u0447\u0435\u043d\u044c \u0433\u0438\u0431\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e. \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438."),Object(b.b)("h3",{id:"\u0441\u043b\u0438\u044f\u043d\u0438\u044f-\u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432"},"\u0421\u043b\u0438\u044f\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432"),Object(b.b)("p",null,"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ",Object(b.b)("inlineCode",{parentName:"p"},"...Spread")," \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0434\u043b\u044f ",Object(b.b)("inlineCode",{parentName:"p"},"\u0441\u043b\u0438\u044f\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432"),":"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let arr1 = [3, 5, 7]\n let arr2 = [4, 2, 8]\n\n let merged = [100, ...arr1, 500, ...arr2]\n let str = '\u041c\u0430\u0441\u0441\u0438\u0432: ' + merged\n\n return <b>{str}</b>\n}\n")),Object(b.b)("h3",{id:"\u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435-\u0432-\u0441\u0442\u0440\u043e\u043a\u0443"},"\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443"),Object(b.b)("p",null,"\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ",Object(b.b)("inlineCode",{parentName:"p"},"...Spread")," \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043b\u044e\u0431\u044b\u043c \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c."),Object(b.b)("p",null,"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0434\u043b\u044f ",Object(b.b)("inlineCode",{parentName:"p"},"\u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f")," \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 ",Object(b.b)("inlineCode",{parentName:"p"},"\u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432:")),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),'function learnJavaScript() {\n let str = \'\u041f\u0440\u0438\u0432\u0435\u0442, Alex!\'\n let result = [...str]\n\n return result // ["\u041f", "\u0440", "\u0438", "\u0432", "\u0435", "\u0442", ",", " ", "A", "l", "e", "x", "!"]\n}\n')),Object(b.b)("p",null,"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. \u0422\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 ",Object(b.b)("inlineCode",{parentName:"p"},"for..of"),"."),Object(b.b)("p",null,"\u0426\u0438\u043a\u043b ",Object(b.b)("inlineCode",{parentName:"p"},"for..of")," \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437 ",Object(b.b)("inlineCode",{parentName:"p"},"...str"),' \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f "\u041f", "\u0440", "\u0438", "\u0432", "\u0435", "\u0442".\n\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 ',Object(b.b)("inlineCode",{parentName:"p"},"[...str].")),Object(b.b)("p",null,"\u0414\u043b\u044f \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 ",Object(b.b)("inlineCode",{parentName:"p"},"Array.from"),". \u041e\u043d \u0442\u043e\u0436\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 (\u0442\u0430\u043a\u043e\u0439 \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u043a\u0430) \u0432 \u043c\u0430\u0441\u0441\u0438\u0432:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),'function learnJavaScript() {\n let str = \'\u041f\u0440\u0438\u0432\u0435\u0442\'\n // Array.from \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\n return Array.from(str) // "\u041f", "\u0440", "\u0438", "\u0432", "\u0435", "\u0442"\n}\n')),Object(b.b)("p",null,"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u043d ",Object(b.b)("inlineCode",{parentName:"p"},"[...str].")," \u041d\u043e \u043c\u0435\u0436\u0434\u0443 Array.from(obj) \u0438 ","[...obj]"," \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0430:"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("inlineCode",{parentName:"li"},"Array.from")," \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0441 \u043f\u0441\u0435\u0432\u0434\u043e\u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438, \u0442\u0430\u043a \u0438 \u0441 \u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438."),Object(b.b)("li",{parentName:"ul"},"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ",Object(b.b)("inlineCode",{parentName:"li"},"...Spread")," \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 ",Object(b.b)("inlineCode",{parentName:"li"},"\u0442\u043e\u043b\u044c\u043a\u043e")," \u0441 \u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438.")),Object(b.b)("p",null,"\u0412\u044b\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u043c\u0430\u0441\u0441\u0438\u0432, \u0442\u043e ",Object(b.b)("inlineCode",{parentName:"p"},"Array.from")," \u2014 \u0431\u043e\u043b\u0435\u0435 ",Object(b.b)("inlineCode",{parentName:"p"},"\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434"),"."),Object(b.b)("h2",{id:"\u0438\u0442\u043e\u0433\u043e"},"\u0418\u0442\u043e\u0433\u043e"),Object(b.b)("p",null,"\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u0438\u0434\u0438\u043c ",Object(b.b)("inlineCode",{parentName:"p"},'"..."')," \u0432 \u043a\u043e\u0434\u0435, \u044d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a ",Object(b.b)("inlineCode",{parentName:"p"},"\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b ...rest"),", \u0442\u0430\u043a \u0438 ",Object(b.b)("inlineCode",{parentName:"p"},"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ...Spread"),"."),Object(b.b)("p",null,"\u041a\u0430\u043a \u043e\u0442\u043b\u0438\u0447\u0438\u0442\u044c \u0438\u0445 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430:"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},"\u0415\u0441\u043b\u0438 ",Object(b.b)("inlineCode",{parentName:"li"},"...")," \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 ",Object(b.b)("inlineCode",{parentName:"li"},"\u0441\u043f\u0438\u0441\u043a\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432")," \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0442\u043e \u044d\u0442\u043e ",Object(b.b)("inlineCode",{parentName:"li"},"\xab\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\xbb"),". \u041e\u043d \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0437 \u043d\u0438\u0445 \u043c\u0430\u0441\u0441\u0438\u0432."),Object(b.b)("li",{parentName:"ul"},"\u0415\u0441\u043b\u0438 ",Object(b.b)("inlineCode",{parentName:"li"},"...")," \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0441\u044f \u0432 ",Object(b.b)("inlineCode",{parentName:"li"},"\u0432\u044b\u0437\u043e\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438")," \u0438\u043b\u0438 \u0433\u0434\u0435-\u043b\u0438\u0431\u043e \u0435\u0449\u0451, \u0442\u043e \u044d\u0442\u043e ",Object(b.b)("inlineCode",{parentName:"li"},"\xab\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\xbb"),". \u041e\u043d \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438.")),Object(b.b)("p",null,"\u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c:"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},"\u041e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432."),Object(b.b)("li",{parentName:"ul"},"\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432."),Object(b.b)("li",{parentName:"ul"},"\u0412\u043c\u0435\u0441\u0442\u0435 \u044d\u0442\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0431\u043e\u0440\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.")),Object(b.b)("h2",{id:"\u0431\u043e\u043d\u0443\u0441"},"\u0411\u043e\u043d\u0443\u0441"),Object(b.b)("p",null,"\u041a\u0430\u043a \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438 ",Object(b.b)("inlineCode",{parentName:"p"},"..."),"?"),Object(b.b)("p",null,"\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439:"),Object(b.b)("ol",null,Object(b.b)("li",{parentName:"ol"},"\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0435 \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043d\u0430\u043c \u043c\u043e\u0433\u0443\u0442 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0441\u044f \u0434\u0432\u0430 \u0432\u0438\u0434\u0430 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 - \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0438 \u043c\u0430\u0441\u0441\u0438\u0432. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c ",Object(b.b)("inlineCode",{parentName:"li"},"for(var key in obj)"),", \u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u044b ",Object(b.b)("inlineCode",{parentName:"li"},"for(var i = 0; i < arr.length; i++)")),Object(b.b)("li",{parentName:"ol"},Object(b.b)("inlineCode",{parentName:"li"},"let goFun = (...element) => { }")," - \u0431\u0435\u0440\u0451\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432 (\u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u043f\u0440\u0438\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c\u043e\u0435 \u043a \u043d\u0435\u043c\u0443 - \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0430 \u043d\u0435 \u043d\u0430\u0431\u043e\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439) - \u0442\u043e \u043c\u044b \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0430\u0448 \u043e\u0434\u043d\u043e\u0440\u0430\u043d\u0433\u043e\u0432\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 (\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c - \u043f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a(\u043c\u0430\u0441\u0441\u0438\u0432) \u0432\u0441\u0435\u0445 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439)."),Object(b.b)("li",{parentName:"ol"},"\u0415\u0441\u043b\u0438 \u044d\u0442\u043e ",Object(b.b)("inlineCode",{parentName:"li"},"\u043e\u0431\u044a\u0435\u043a\u0442/\u043c\u0430\u0441\u0441\u0438\u0432"),", \u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u043c - \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0441\u044f \u043b\u0438 \u044d\u0442\u043e\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430\u043c \u0443\u0436\u0435 (\u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438), \u0435\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e - \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u043c, \u0430 \u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e =) \u0435\u0441\u043b\u0438 \u0436\u0435 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0441\u044f - \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0437\u0430\u043d\u043e\u0432\u043e \u0443\u0436\u0435 \u0434\u043b\u044f \u0432\u043d\u043e\u0432\u044c \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.")),Object(b.b)("p",null,"\u0427\u0442\u043e\u0431 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0435\u0440\u0442\u0438\u0442\u044c ",Object(b.b)("inlineCode",{parentName:"p"},"\u0431\u043b\u043e\u043a-\u0441\u0445\u0435\u043c\u0443")," \u0438\u043b\u0438 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043e\u0434 \u043f\u0438\u0441\u0430\u0442\u044c, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0432 \u044f\u0437\u044b\u043a \u043a \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u043c\u0443, \u0447\u0442\u043e\u0431 \u0441\u043c\u044b\u0441\u043b \u0431\u044b\u043b \u043f\u043e\u043d\u044f\u0442\u0435\u043d \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u041d\u0443, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0432 \u0442\u043e\u043c \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0434\u0440\u043e\u0431\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430 ",Object(b.b)("inlineCode",{parentName:"p"},"\u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438,")," \u0447\u0442\u043e\u0431 \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0438\u0440\u043f\u0438\u0447\u0438\u043a \u0441\u0442\u043e\u044f\u043b \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043c\u0435\u0441\u0442\u0435, \u0432 \u0437\u0434\u0430\u043d\u0438\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430."),Object(b.b)("h2",{id:"\u0432\u043e\u043f\u0440\u043e\u0441\u044b"},"\u0412\u043e\u043f\u0440\u043e\u0441\u044b"),Object(b.b)("ol",null,Object(b.b)("li",{parentName:"ol"},"\u0415\u0441\u043b\u0438 ",Object(b.b)("inlineCode",{parentName:"li"},"...")," \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 ",Object(b.b)("inlineCode",{parentName:"li"},"\u0441\u043f\u0438\u0441\u043a\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432")," \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0442\u043e \u043c\u044b \u0438\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u043e \u0441:")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},"\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c"),Object(b.b)("li",{parentName:"ul"},"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f"),Object(b.b)("li",{parentName:"ul"},"\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c\u0438.")),Object(b.b)("ol",{start:2},Object(b.b)("li",{parentName:"ol"},"\u0421\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c ",Object(b.b)("inlineCode",{parentName:"li"},"arguments[]")," \u0432 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445:")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},"\u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0438 \u0432 \u043a\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435"),Object(b.b)("li",{parentName:"ul"},"\u043c\u043e\u0436\u043d\u043e, \u043d\u043e \u043d\u0435 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e"),Object(b.b)("li",{parentName:"ul"},"\u043c\u043e\u0436\u043d\u043e, \u0430 \u0432 \u0447\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430?")),Object(b.b)("ol",{start:3},Object(b.b)("li",{parentName:"ol"},"\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441 ",Object(b.b)("inlineCode",{parentName:"li"},"\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432")," \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442:")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},"\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b ",Object(b.b)("inlineCode",{parentName:"li"},"...rest")),Object(b.b)("li",{parentName:"ul"},"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f ",Object(b.b)("inlineCode",{parentName:"li"},"...Spread")),Object(b.b)("li",{parentName:"ul"},"\u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u044b\u0437\u043e\u0432\u0430.")),Object(b.b)("ol",{start:4},Object(b.b)("li",{parentName:"ol"},"\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0434\u0432\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 \u043e\u0434\u0438\u043d \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f:")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f"),Object(b.b)("li",{parentName:"ul"},"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 ",Object(b.b)("inlineCode",{parentName:"li"},"Array.from")),Object(b.b)("li",{parentName:"ul"},"\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440.")),Object(b.b)("h2",{id:"\u0441\u0441\u044b\u043b\u043a\u0438"},"\u0421\u0441\u044b\u043b\u043a\u0438"),Object(b.b)("ol",null,Object(b.b)("li",{parentName:"ol"},Object(b.b)("a",Object(a.a)({parentName:"li"},{href:"https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Operators/Spread_syntax"}),'MDN web doc. \u0421\u0442\u0430\u0442\u044c\u044f "Spread syntax"')),Object(b.b)("li",{parentName:"ol"},Object(b.b)("a",Object(a.a)({parentName:"li"},{href:"https://learn.javascript.ru/rest-parameters-spread-operator"}),'\u0421\u0442\u0430\u0442\u044c\u044f "\u041e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f"')),Object(b.b)("li",{parentName:"ol"},Object(b.b)("a",Object(a.a)({parentName:"li"},{href:"https://medium.com/@stasonmars/%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%82%D0%BE%D1%80-spread-%D0%B8-rest-%D0%BF%D0%B0%D1%80%D0%B0%D0%BC%D0%B5%D1%82%D1%80%D1%8B-%D0%B2-javascript-22eb33cb0825"}),'\u0421\u0442\u0430\u0442\u044c\u044f "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 spread \u0438 rest"'))),Object(b.b)("h2",{id:"contributors-"},"Contributors \u2728"),Object(b.b)("p",null,"Thanks goes to these wonderful people (",Object(b.b)("a",Object(a.a)({parentName:"p"},{href:"https://allcontributors.org/docs/en/emoji-key"}),"emoji key"),"):"),Object(b.b)("table",null,Object(b.b)("tr",null,Object(b.b)("td",{align:"center"},Object(b.b)("a",{href:"https://github.com/KoDim-React"},Object(b.b)("img",{src:"https://avatars1.githubusercontent.com/u/72087863?v=4?s=200",width:"200px ",alt:""}),Object(b.b)("br",null),Object(b.b)("sub",null,Object(b.b)("b",null,"Dmitriy K."))),Object(b.b)("br",null),Object(b.b)("a",{href:"#mentoring-KoDim-React",title:"Mentoring"},"\ud83d\udcd6")),Object(b.b)("td",{align:"center"},Object(b.b)("a",{href:"https://fullstackserverless.github.io/"},Object(b.b)("img",{src:"https://avatars0.githubusercontent.com/u/6774813?v=4?s=200",width:"200px ",alt:""}),Object(b.b)("br",null),Object(b.b)("sub",null,Object(b.b)("b",null,"Dmitriy Vasilev"))),Object(b.b)("br",null),Object(b.b)("a",{href:"#financial-gHashTag",title:"Financial"},"\ud83d\udcb5")))),Object(b.b)("p",null,Object(b.b)("a",Object(a.a)({parentName:"p"},{href:"https://www.patreon.com/bePatron?u=31769291"}),Object(b.b)("img",{alt:"Become a Patron!",src:n(174).default}))))}o.isMDXComponent=!0},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return s}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},b=Object.keys(e);for(a=0;a<b.length;a++)n=b[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a<b.length;a++)n=b[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=r.a.createContext({}),o=function(e){var t=r.a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},j=function(e){var t=o(e.components);return r.a.createElement(p.Provider,{value:t},e.children)},O={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},m=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,l=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),j=o(n),m=a,s=j["".concat(l,".").concat(m)]||j[m]||O[m]||b;return n?r.a.createElement(s,c(c({ref:t},p),{},{components:n})):r.a.createElement(s,c({ref:t},p))}));function s(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,l=new Array(b);l[0]=m;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:a,l[1]=c;for(var p=2;p<b;p++)l[p]=n[p];return r.a.createElement.apply(null,l)}return r.a.createElement.apply(null,n)}m.displayName="MDXCreateElement"},174:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/patreon-15b4e66595efdb2e079faf18b89cff7c.png"}}]);