diff options
| author | Florian Dieminger <me@fiji-flo.de> | 2021-02-11 18:20:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-11 18:20:22 +0100 |
| commit | 999e51572c093be901d6c8f942feb76038ae940c (patch) | |
| tree | 0b2242d6df50748abf3f11c717211e8bbcf3d45e /files/de/web/javascript/reference/global_objects/string/trimend/index.html | |
| parent | 747e709ad97c5782af29688f52c8105c08d9a323 (diff) | |
| parent | 12b585b8e60a2877ff64dc6dc5ab058c43652f47 (diff) | |
| download | translated-content-999e51572c093be901d6c8f942feb76038ae940c.tar.gz translated-content-999e51572c093be901d6c8f942feb76038ae940c.tar.bz2 translated-content-999e51572c093be901d6c8f942feb76038ae940c.zip | |
Merge pull request #55 from fiji-flo/unslugging-de
Unslugging de
Diffstat (limited to 'files/de/web/javascript/reference/global_objects/string/trimend/index.html')
| -rw-r--r-- | files/de/web/javascript/reference/global_objects/string/trimend/index.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/files/de/web/javascript/reference/global_objects/string/trimend/index.html b/files/de/web/javascript/reference/global_objects/string/trimend/index.html new file mode 100644 index 0000000000..161137e75e --- /dev/null +++ b/files/de/web/javascript/reference/global_objects/string/trimend/index.html @@ -0,0 +1,59 @@ +--- +title: String.prototype.trimRight() +slug: Web/JavaScript/Reference/Global_Objects/String/trimEnd +tags: + - JavaScript + - Method + - Prototype + - Reference + - String +translation_of: Web/JavaScript/Reference/Global_Objects/String/trimEnd +original_slug: Web/JavaScript/Reference/Global_Objects/String/TrimRight +--- +<div>{{JSRef}} {{non-standard_header}}</div> + +<p>Die <strong><code>trimRight()</code></strong> Methode entfernt Leerzeichen vom rechten Ende der Zeichenkette.</p> + +<h2 id="Syntax">Syntax</h2> + +<pre class="syntaxbox"><code><var>str</var>.trimRight()</code></pre> + +<h3 id="Rückgabewert">Rückgabewert</h3> + +<p>Ein neuen String, der den alten String ohne Whitespaces auf der rechten Seite beinhaltet.</p> + +<h2 id="Beschreibung">Beschreibung</h2> + +<p>Die <code>trimRight()</code> Methode gibt die Zeichenkette ohne Leerzeichen am rechten Ende zurück. <code>trimRight()</code> manipuliert nicht den Wert der Zeichenkette.</p> + +<h2 id="Beispiel">Beispiel</h2> + +<h3 id="trimRight()_verwenden"><code>trimRight()</code> verwenden</h3> + +<p>Im folgenden Beispiel wird die Funktionalität dieser Methode dargestellt.</p> + +<pre class="brush: js; highlight: [5]">var str = ' foo '; + +console.log(str.length); // 8 + +str = str.trimRight(); +console.log(str.length); // 6 +console.log(str); // ' foo' +</pre> + +<h2 id="Spezifikationen">Spezifikationen</h2> + +<p>Gehört keinem Standard an. Hinzugefügt in JavaScript 1.8.1.</p> + +<h2 id="Browserkompatibilität">Browserkompatibilität</h2> + +<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p> + +<p>{{Compat("javascript.builtins.String.trimRight")}}</p> + +<h2 id="Siehe_auch">Siehe auch</h2> + +<ul> + <li>{{jsxref("String.prototype.trim()")}}</li> + <li>{{jsxref("String.prototype.trimLeft()")}} {{non-standard_inline}}</li> +</ul> |
