mozilla

Compare Revisions

String.prototype.trim()

Change Revisions

Revision 337887:

Revision 337887 by Ruakh on

Revision 341165:

Revision 341165 by ethertank on

Title:
Trim
String.trim
Slug:
JavaScript/Reference/Global_Objects/String/Trim
JavaScript/Reference/Global_Objects/String/Trim
Tags:
"String Methods"
"String Methods", "String"
Content:

Revision 337887
Revision 341165
n7    <p>n7    <div>
8      {{ js_minversion_header("1.8.1") }}8      {{js_minversion_header("1.8.1")}}
9    </p>9    </div>
n20            Method of <a href="/en/JavaScript/Reference/Global_Obn20            Method of <a href="/en-US/docs/JavaScript/Reference/G
>jects/String" title="en/JavaScript/Reference/Global_Objects/Strin>lobal_Objects/String" title="JavaScript/Reference/Global_Objects/
>g"><code>String</code></a>>String"><code>String</code></a>
n46    <p>n46    <pre class="syntaxbox">
47      <code><em>string</em>.trim()</code>47<code><em>string</em>.trim()</code>
48    </p>48</pre>
49    <h2 id="Parameters" name="Parameters">49    <h3 id="Parameters" name="Parameters">
n51    </h2>n51    </h3>
n74    <h2 id="See_Also" name="See_Also">n74    <h2 id="Compatibility" name="Compatibility">
75      See Also
76    </h2>
77    <ul>
78      <li>
79        <a class="internal" href="/en/JavaScript/Reference/Global
>_Objects/String/TrimLeft" title="en/Core JavaScript 1.5 Reference 
>/Global Objects/String/trimLeft"><code>trimLeft()</code></a> 
80      </li>
81      <li>
82        <a class="internal" href="/en/JavaScript/Reference/Global
>_Objects/String/TrimRight" title="en/Core JavaScript 1.5 Referenc 
>e/Global Objects/String/trimRight"><code>trimRight()</code></a> 
83      </li>
84    </ul>
85    <h2 id="See_also" name="See_also">
n98    <h2 id="Browser_compatibility">n87    <h2 id="Browser_compatibility" name="Browser_compatibility">
n102      Based on <a class="external" href="http://kangax.github.comn91      Based on <a href="http://kangax.github.com/es5-compat-table
>/es5-compat-table/">Kangax's compat tables</a>>/">Kangax's compat tables</a>
103    </p>
104    <p>92    </p>
93    <div>
105      {{ CompatibilityTable() }}94      {{CompatibilityTable}}
106    </p>95    </div>
n138              {{ CompatVersionUnknown() }}n127              {{CompatVersionUnknown}}
n181              {{ CompatUnknown() }}n170              {{CompatUnknown}}
182            </td>
183            <td>171            </td>
184              {{ CompatUnknown() }}
185            </td>172            <td>
173              {{CompatUnknown}}
186            <td>174            </td>
187              {{ CompatUnknown() }}
188            </td>175            <td>
176              {{CompatUnknown}}
189            <td>177            </td>
190              {{ CompatUnknown() }}
191            </td>178            <td>
179              {{CompatUnknown}}
192            <td>180            </td>
181            <td>
193              {{ CompatUnknown() }}182              {{CompatUnknown}}
t199    <p>t188    <h2 id="See_also" name="See_also">
200      {{ languages( { "ja": "ja/Core_JavaScript_1.5_Reference/Glo189      See also
>bal_Objects/String/Trim","zh-cn": "zh-cn/JavaScript/Reference/Glo 
>bal_Objects/String/Trim"} ) }} 
201    </p>190    </h2>
191    <ul>
192      <li>
193        <a href="/en-US/docs/JavaScript/Reference/Global_Objects/
 >String/TrimLeft" title="JavaScript/ Reference/Global Objects/Stri
 >ng/trimLeft"><code>trimLeft()</code></a>
194      </li>
195      <li>
196        <a href="/en-US/docs/JavaScript/Reference/Global_Objects/
 >String/TrimRight" title="JavaScript/ Reference/Global Objects/Str
 >ing/trimRight"><code>trimRight()</code></a>
197      </li>
198    </ul>

Back to History