Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.93 Safari/537.36 Vivaldi/2.8.1664.40
Chrome 77
Windows
Desktop
5 years ago
Test name Executions per second
slice 369415.3 Ops/sec
spread operator 343967.3 Ops/sec
push apply into empty array 710665.8 Ops/sec
Array.from 190401.1 Ops/sec
Object.values 69547.2 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values


;