You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entries/jQuery.trim.xml
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
<desc>Remove the whitespace from the beginning and end of a string.</desc>
11
11
<longdesc>
12
12
<divclass="warning">
13
-
<p>Note: This API has been deprecated in jQuery 3.5; please use the native <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim"><code>String.prototype.trim</code></a> method instead.</p>
13
+
<p>Note: This API has been deprecated in jQuery 3.5; please use the native <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim"><code>String.prototype.trim</code></a> method instead. Unlike <code>jQuery.trim</code>, <code>String.prototype.trim</code> does not work with types other than strings (<code>null</code>, <code>undefined</code>, <code>Number</code>). Make sure that your code is compatible when migrating.</p>
14
14
</div>
15
15
<p>The <code>$.trim()</code> function removes all newlines, spaces (including non-breaking spaces), and tabs from the beginning and end of the supplied string. If these whitespace characters occur in the middle of the string, they are preserved.</p>
0 commit comments