Skip to main content

Bug Tracker

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: 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 ( 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 dmethvin comment:1

resolution: → notabug
status: newclosed