Array.slice() vs Spread operator vs Array.slice() with start and end vs Array.slice() with start| Test case name | Result |
|---|---|
| Array.slice() | |
| Spread operator | |
| Array.slice() with start and end | |
| Array.slice() with start |
| Test name | Executions per second |
|---|---|
| ✓ Array.slice() with start | 64,476,800 Ops/sec |
| Array.slice() | 61,513,672 Ops/sec |
| Spread operator | 49,921,676 Ops/sec |
| Array.slice() with start and end | 37,365,900 Ops/sec |