Compare flat() vs reduce+concat.
const arr = Array.from({length: 100}, () => [1, 2, 3]);Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| Array.flat | | ready |
| reduce & concat | | ready |
| Spread & concat | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.