Timeline for How to merge two arrays in JavaScript and de-duplicate items
Current License: CC BY-SA 2.5
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 18, 2009 at 10:56 | history | edited | Amarghosh | CC BY-SA 2.5 |
added 17 characters in body; added 5 characters in body
|
Oct 18, 2009 at 10:11 | history | edited | Amarghosh | CC BY-SA 2.5 |
added indexOf code from MDC; deleted 2 characters in body
|
Oct 18, 2009 at 9:49 | comment | added | Amarghosh |
updated using indexOf . Cleaned up the code by removing commented part. @meder - thanks again.
|
|
Oct 18, 2009 at 9:48 | history | edited | Amarghosh | CC BY-SA 2.5 |
using Array.indexOf; removed unwanted code;
|
Oct 18, 2009 at 9:37 | comment | added | meder omuraliev | IE6 doesn't support Array.prototype.indexOf, just paste the support method given by Mozilla so IE doesn't throw an error. | |
Oct 18, 2009 at 9:19 | comment | added | Amarghosh | MDC says indexOf requires javascript 1.6 Would it be safe to assume that the common browsers (>= FF2, > IE6 etc) would support it? | |
Oct 18, 2009 at 9:15 | comment | added | Amarghosh | Thanks @Gumbo and @meder - gonna change my bookmarks now. I'm yet to do anything serious in js and I use w3schools for casual reference (that's all I've ever needed) - may be that's why I didn't realize that. | |
Oct 18, 2009 at 8:51 | comment | added | Amarghosh |
I couldn't find it in w3schools, that's why I wrote it. w3schools.com/jsref/jsref_obj_array.asp Does it take a from parameter btw?
|
|
Oct 18, 2009 at 8:43 | history | answered | Amarghosh | CC BY-SA 2.5 |