Compare Set vs filter+indexOf.
const arr = Array.from({length: 1000}, () => Math.floor(Math.random() * 100));Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| Set + Spread | | ready |
| Array.from(Set) | | ready |
| filter & indexOf | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.