aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/javascript/reference/functions/arrow_functions/index.html
diff options
context:
space:
mode:
authorAlexey Pyltsyn <lex61rus@gmail.com>2021-09-15 22:48:53 +0300
committerGitHub <noreply@github.com>2021-09-15 22:48:53 +0300
commit5e48f8a9807acb369fa0228d16655fc044f4a17b (patch)
tree602bc587890e0e972e5aba6080b04f0a039cf2ac /files/ru/web/javascript/reference/functions/arrow_functions/index.html
parent517fef5c59a5086e0e323e6a46159d2b78d91096 (diff)
downloadtranslated-content-5e48f8a9807acb369fa0228d16655fc044f4a17b.tar.gz
translated-content-5e48f8a9807acb369fa0228d16655fc044f4a17b.tar.bz2
translated-content-5e48f8a9807acb369fa0228d16655fc044f4a17b.zip
Unification translation of rest parameters (#2470)
* Унификация термина "rest parameters" * Update files/ru/web/javascript/reference/functions/index.html Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com> Co-authored-by: Maxim Postautov <54762420+mpstv@users.noreply.github.com>
Diffstat (limited to 'files/ru/web/javascript/reference/functions/arrow_functions/index.html')
-rw-r--r--files/ru/web/javascript/reference/functions/arrow_functions/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/ru/web/javascript/reference/functions/arrow_functions/index.html b/files/ru/web/javascript/reference/functions/arrow_functions/index.html
index e336bb93b5..8cabc98dcb 100644
--- a/files/ru/web/javascript/reference/functions/arrow_functions/index.html
+++ b/files/ru/web/javascript/reference/functions/arrow_functions/index.html
@@ -36,7 +36,7 @@ singleParam =&gt; { statements }
<pre class="brush: js">// Когда возвращаете литеральное выражение объекта, заключите тело в скобки
params =&gt; ({foo: bar})
-// <a href="https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Functions/Rest_parameters">Rest параметры</a> и <a href="https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Functions/Default_parameters">параметры по умолчанию</a> поддерживаются
+// <a href="https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Functions/Rest_parameters">Остаточные параметры</a> и <a href="https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Functions/Default_parameters">параметры по умолчанию</a> поддерживаются
(param1, param2, ...rest) =&gt; { statements }
(param1 = defaultValue1, param2, …, paramN = defaultValueN) =&gt; { statements }
@@ -188,7 +188,7 @@ function foo() {
foo(1); // 3</pre>
-<p>В большинстве случаев лучшей заменой объекта arguments в стрелочных функциях являются <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters">rest параметры</a>:</p>
+<p>В большинстве случаев лучшей заменой объекта arguments в стрелочных функциях являются <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters">остаточные параметры</a>:</p>
<pre class="brush: js">function foo() {
var f = (...args) =&gt; args[0];