Skip to content

Commit 356fbe9

Browse files
AurelioDeRosakswedberg
authored andcommitted
get.xml: Add note about returning undefined when number out of bounds
1 parent c6d5da3 commit 356fbe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/get.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</signature>
1212
<desc>Retrieve one of the elements matched by the jQuery object.</desc>
1313
<longdesc>
14-
<p>The <code>.get()</code> method grants us access to the DOM nodes underlying each jQuery object. Consider a simple unordered list:</p>
14+
<p>The <code>.get()</code> method grants access to the DOM nodes underlying each jQuery object. If the value of <code>index</code> is out of bounds — less than 0 or equal to or greater than the number of elements — it returns <code>undefined</code>. Consider a simple unordered list:</p>
1515
<pre><code>
1616
&lt;ul&gt;
1717
&lt;li id="foo"&gt;foo&lt;/li&gt;

0 commit comments

Comments
 (0)