Skip to main content
6 events
when toggle format what by license comment
Mar 22, 2017 at 20:35 comment added Robert Baker I use a similar solution, I allow passing a hashCode function or passing a string to identify a property in the object to use as the hash key.
Feb 19, 2016 at 14:55 comment added Bergi Your "hash" is the String() function in javascript. Which might work for primitive values (albeit with collisions between types), but it's not a good fit for arrays of objects.
Apr 16, 2015 at 17:29 comment added slickplaid Very nicely done. Beats out quite (if not all) of the other results on this page by leveraging the associative array and keeping out the looping of indexOf and other operations. jsperf.com/merge-two-arrays-keeping-only-unique-values/21
S Dec 12, 2012 at 20:06 review Late answers
Dec 12, 2012 at 20:07
S Dec 12, 2012 at 20:06 review First posts
Dec 12, 2012 at 20:07
Dec 12, 2012 at 19:50 history answered Mike CC BY-SA 3.0