Bug Tracker

Opened 9 years ago

Closed 9 years ago

#14961 closed bug (notabug)

Wrong description in .get() documentation

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:


In the first paragraph of description of the .get() function (http://api.jquery.com/get/) there is written:

If the value of index is out of bounds — less than 0 or equal to or greater than the number of elements — it returns undefined.

But, as described below on the same page and as visible in the source, when negative value is passed, the function doesn't return undefined; it returns an element with index counted from the end of the set.

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.