Skip to main content

Bug Tracker

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]

Attachments (0)
Change History (2)

Changed September 27, 2012 09:14PM UTC by cxc330@case.edu comment:1

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.

Changed September 27, 2012 09:18PM UTC by mikesherov comment:2

resolution: → notabug
status: newclosed