Ticket #606 (closed enhancement: wontfix)
Array.pushUnique() does not handle arrays containing objects
| Reported by: | PhilHawksworth | Owned by: | JeremyRuston |
|---|---|---|---|
| Priority: | minor | Milestone: | 2011.cleanup |
| Component: | core | Version: | |
| Severity: | low | Keywords: | |
| Cc: |
Description
If I push an object into an array which already contains an identical object, pushUnique should prevent duplicates being added to the array.
For example
var test_obj_arr = [{id:1}, {id:2}];
test_obj_arr.pushUnique({id:2});
should not alter the array.
Change History
Note: See
TracTickets for help on using
tickets.
