Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 YaBrowser/19.9.0.1760 Yowser/2.5 Safari/537.36
Yandex Browser 19
Mac OS X 10.14.6
Desktop
5 years ago
Test name Executions per second
slice 11869953.0 Ops/sec
spread operator 11501312.0 Ops/sec
concat into empty array 4204212.5 Ops/sec
Array.from 4249467.0 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • concat into empty array

  • Array.from


;