Side navigation
#14961 closed bug (notabug)
Opened April 03, 2014 04:39PM UTC
Closed April 14, 2014 03:27AM UTC
Wrong description in .get() documentation
| Reported by: | kr.kruk@gmail.com | 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.
Attachments (0)
Change History (1)
Changed April 14, 2014 03:27AM UTC by comment:1
| resolution: | → notabug | 
|---|---|
| status: | new → closed | 
Moved to a docs issue. https://github.com/jquery/api.jquery.com/issues/474