Timeline for How to merge two arrays in JavaScript and de-duplicate items
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 9, 2021 at 23:20 | comment | added | OXiGEN |
It is not efficient to convert to objects in every use case. For example, we might want the union of keys from 2 arrays of Object.keys() .
|
|
Oct 18, 2017 at 6:30 | history | edited | Peter Mortensen | CC BY-SA 3.0 |
Active reading. [ <http://en.wiktionary.org/wiki/won%27t>].
|
Oct 18, 2009 at 19:13 | comment | added | Nick Retallack | Why would I mean that? The purpose of that condition is to ignore properties that may be in the object's prototype. | |
Oct 18, 2009 at 19:11 | history | edited | Nick Retallack | CC BY-SA 2.5 |
true is more setty; added 40 characters in body
|
Oct 18, 2009 at 9:07 | history | edited | Nick Retallack | CC BY-SA 2.5 |
tweaks
|
Oct 18, 2009 at 8:56 | comment | added | Gumbo |
Don’t you mean if (!set1.hasOwnProperty(key)) ?
|
|
Oct 18, 2009 at 8:51 | history | answered | Nick Retallack | CC BY-SA 2.5 |