Array.prototype.slice vs spread operator vs Array.prototype.slice with explicit zero argument vs Array.prototype.slice with explicit neg-inf argument vs Array.prototype.slice with explicit undefined argument| Test case name | Result |
|---|---|
| Array.prototype.slice | |
| spread operator | |
| Array.prototype.slice with explicit zero argument | |
| Array.prototype.slice with explicit neg-inf argument | |
| Array.prototype.slice with explicit undefined argument |
| Test name | Executions per second |
|---|---|
| ✓ Array.prototype.slice with explicit zero argument | 89,720,632 Ops/sec |
| Array.prototype.slice | 87,181,920 Ops/sec |
| spread operator | 58,403,956 Ops/sec |
| Array.prototype.slice with explicit undefined argument | 45,852,144 Ops/sec |
| Array.prototype.slice with explicit neg-inf argument | 29,471,486 Ops/sec |