Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:69.0) Gecko/20100101 Firefox/69.0
Firefox 69
Mac OS X 10.13
Desktop
4 years ago
Test name Executions per second
Using the spread operator 24033.0 Ops/sec
Using Array.prototype.concat 52762.1 Ops/sec
Script Preparation code:
Tests:
  • Using the spread operator

  • Using Array.prototype.concat