Bug Tracker

Opened 5 years ago

Closed 5 years ago

#14961 closed bug (notabug)

Wrong description in .get() documentation

Reported by: kr.kruk@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:

Description

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 5 years ago by dmethvin

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