Skip to main content
13 events
when toggle format what by license comment
S Feb 25, 2023 at 9:33 history suggested tagurit CC BY-SA 4.0
Replaced jsperf link with JSBench mirror
Feb 24, 2023 at 21:19 review Suggested edits
S Feb 25, 2023 at 9:33
Mar 1, 2021 at 4:03 history edited Pitouli CC BY-SA 4.0
Improved readability
Mar 1, 2021 at 3:57 history edited Pitouli CC BY-SA 4.0
added 42 characters in body
Mar 1, 2021 at 2:43 history edited Pitouli CC BY-SA 4.0
fixed grammar
Mar 1, 2021 at 2:17 history edited Pitouli CC BY-SA 4.0
The performance depends on the number of items. The Set method should be the one recommended.
Mar 1, 2021 at 1:43 history edited Pitouli CC BY-SA 4.0
The Set method can be / is the fastest
Mar 1, 2021 at 1:41 comment added Pitouli @OXiGEN Yep, either the browser implementation of Set has been improved, or it depends of the type of data. I should have written my arrays initialization in my answer :(
Feb 10, 2021 at 0:53 comment added OXiGEN Turns out Set is much faster, especially as the records increase (for Numbers at least). See runnable testers at stackoverflow.com/a/66129415/2578125.
Feb 9, 2021 at 23:33 comment added OXiGEN Thanks for this and putting the performance numbers in easy to understand ranked % figures. I was originally searching for Set based options because of simplicity. Given my datasets can get very large, performance is definitely a more important consideration!
Feb 26, 2020 at 20:30 review Late answers
Feb 26, 2020 at 20:32
Feb 26, 2020 at 20:17 history edited Pitouli CC BY-SA 4.0
added 374 characters in body
Feb 26, 2020 at 20:12 history answered Pitouli CC BY-SA 4.0