Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Chrome 67
Windows 7
Desktop
6 years ago
Test name Executions per second
Using spread operator 11040730.0 Ops/sec
Using push function 13760300.0 Ops/sec
Add to last index of array 14995752.0 Ops/sec
Tests:
  • Using spread operator

  • Using push function

  • Add to last index of array


;