Re: [jQuery] Question about jQuery.merge

2006-10-19 Thread Andy Matthews
Looks like it only removed one set of duplicates. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Choan C. Galvez Sent: Thursday, October 19, 2006 12:31 PM To: jQuery Discussion. Subject: [jQuery] Question about jQuery.merge Hi all. I've been bro

Re: [jQuery] Question about jQuery.merge

2006-10-19 Thread Dave Methvin
> ... if I merge the arrays > > var a = [ 2, 3, 4, 5 ]; > var b = [ 1, 1, 2, 3, 5 ]; > > I get: > > [ 2,3,4,5,1,1 ] > > So a) the "removing all duplicates" is not an exact definition > of what this method does or b) there is a bug in `merge` :( The documentation does not match the comments in

[jQuery] Question about jQuery.merge

2006-10-19 Thread Choan C. Gálvez
Hi all. I've been browsing the API and discovered the docs for `jQuery.merge`. Great! One question about it: the docs say: "Merge two arrays together, removing all duplicates. The final order or the new array is: All the results from the first array, followed by the unique results from the secon