Test case name | Result |
---|---|
Array.prototype.toSpliced | |
Spread operator | |
Array.prototype.slice + Array.prototype.push |
Test name | Executions per second |
---|---|
Array.prototype.toSpliced | 7445254.0 Ops/sec |
Spread operator | 12354500.0 Ops/sec |
Array.prototype.slice + Array.prototype.push | 12673350.0 Ops/sec |