aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/javascript/reference/global_objects/string/endswith
diff options
context:
space:
mode:
Diffstat (limited to 'files/ru/web/javascript/reference/global_objects/string/endswith')
-rw-r--r--files/ru/web/javascript/reference/global_objects/string/endswith/index.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/files/ru/web/javascript/reference/global_objects/string/endswith/index.html b/files/ru/web/javascript/reference/global_objects/string/endswith/index.html
index dae771b3b2..1fa53bd180 100644
--- a/files/ru/web/javascript/reference/global_objects/string/endswith/index.html
+++ b/files/ru/web/javascript/reference/global_objects/string/endswith/index.html
@@ -11,15 +11,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/endsWith
---
<div>{{JSRef("Global_Objects", "String")}}</div>
-<h2 id="Summary" name="Summary">Сводка</h2>
+<h2 id="Summary">Сводка</h2>
<p>Метод <strong><code>endsWith()</code></strong> позволяет определить, заканчивается ли строка символами указанными в скобках, возвращая, соответственно, <code>true</code> или <code>false</code>.</p>
-<h2 id="Syntax" name="Syntax">Синтаксис</h2>
+<h2 id="Syntax">Синтаксис</h2>
<pre class="syntaxbox notranslate"><code><var>str</var>.endsWith(<var>searchString</var>[, <var>length</var>])</code></pre>
-<h3 id="Parameters" name="Parameters">Параметры</h3>
+<h3 id="Parameters">Параметры</h3>
<dl>
<dt><code>searchString</code></dt>
@@ -32,13 +32,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/endsWith
<p><strong><code>true</code></strong> если данные символы находятся в конце строки; в противном случае, <strong><code>false</code></strong>.</p>
-<h2 id="Description" name="Description">Описание</h2>
+<h2 id="Description">Описание</h2>
<p>Этот метод позволяет определять, заканчивается ли строка искомыми символами. Метод чувствителен к регистру.</p>
-<h2 id="Examples" name="Examples">Примеры</h2>
+<h2 id="Examples">Примеры</h2>
-<h3 id="Example_Using_endsWith" name="Example:_Using_endsWith">Пример: использование метода <code>endsWith()</code></h3>
+<h3 id="Example_Using_endsWith">Пример: использование метода <code>endsWith()</code></h3>
<pre class="brush: js notranslate">var str = 'Быть или не быть, вот в чём вопрос.';
@@ -47,7 +47,7 @@ console.log(str.endsWith('быть')); // false
console.log(str.endsWith('быть', 16)); // true
</pre>
-<h2 id="Polyfill" name="Polyfill">Полифил</h2>
+<h2 id="Polyfill">Полифил</h2>
<p>Этот метод был добавлен к спецификации ECMAScript 6 и может быть доступен ещё не во всех реализациях JavaScript. Однако, вы можете легко эмулировать этот метод при помощи следующего кода:</p>
@@ -66,7 +66,7 @@ console.log(str.endsWith('быть', 16)); // true
}
</pre>
-<h2 id="Specifications" name="Specifications">Спецификации</h2>
+<h2 id="Specifications">Спецификации</h2>
<table class="standard-table">
<tbody>
@@ -83,11 +83,11 @@ console.log(str.endsWith('быть', 16)); // true
</tbody>
</table>
-<h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2>
+<h2 id="Browser_compatibility">Совместимость с браузерами</h2>
<p>{{Compat}}</p>
-<h2 id="See_also" name="See_also">Смотрите также</h2>
+<h2 id="See_also">Смотрите также</h2>
<ul>
<li>{{jsxref("String.prototype.startsWith()")}} {{experimental_inline}}</li>