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.map.xml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
</signature>
22
22
<desc>Translate all items in an array or object to new array of items.</desc>
23
23
<longdesc>
24
-
<p>If you wish to process a jQuery object — for example, <code>$('div').map( callback );</code> — use <ahref="/jQuery.map/">.map()</a> instead. </p>
24
+
<p>If you wish to process a jQuery object — for example, <code>$('div').map( callback );</code> — use <ahref="/map/">.map()</a> instead. </p>
25
25
<p>The <code>$.map()</code> method applies a function to each item in an array or object and maps the results into a new array. <strong>Prior to jQuery 1.6</strong>, <code>$.map()</code> supports traversing <em>arrays only</em>. <strong>As of jQuery 1.6</strong> it also traverses objects.</p>
26
26
<p>Array-like objects — those with a <code>.length</code> property <em>and</em> a value on the <code>.length - 1</code> index — must be converted to actual arrays before being passed to <code>$.map()</code>. The jQuery library provides <ahref="http://api.jquery.com/jQuery.makeArray/">$.makeArray()</a> for such conversions.</p>
0 commit comments