Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Chrome 66
Mac OS X 10.13.1
Other
6 years ago
Test name Executions per second
slice 8697969.0 Ops/sec
spread operator 2869591.8 Ops/sec
concat into empty array 3392326.0 Ops/sec
Array.from 1074200.2 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • concat into empty array

  • Array.from


;