Side navigation
#12627 closed bug (notabug)
Opened September 27, 2012 09:08PM UTC
Closed September 27, 2012 09:18PM UTC
.unique() returns duplicates
Reported by: | cxc330@case.edu | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Currently tried in Chrome, where in version 1.8.1 and 1.8.2, the unique() function returns a duplicates.
In Chrome console, calling: $.unique([0,1,0,1,0,0,0,1,1,0,1]);
returns: [0, 1, 0, 0, 0, 0, 0]
I apologize for submitting this. After reading more on the documentation, I see this: "This function only works on plain JavaScript arrays of DOM elements". Please disregard this ticket.