DEV Community

Discussion on: JavaScript Katas: Remove duplicates

Collapse
 
harrisgca profile image
Glenn Harris

Unfortunately I don't know anything about the internals, even after some research. The results I listed above were in Chrome browser, so I reran the tests in Firefox and Safari and got wildly different results.

Firefox v78.0.2

  1. For (100%)
  2. Reduce (73%)
  3. Set (65%)

Safari v13.1.2

  1. For (100%)
  2. Reduce (64%)
  3. Set (18%)

Chrome 84.4.04

  1. For (100%)
  2. Set (78%)
  3. Reduce (37%)