Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36
Chrome 80
Windows
Desktop
4 years ago
Test name Executions per second
slice 211945.1 Ops/sec
spread operator 220970.2 Ops/sec
push apply into empty array 756394.4 Ops/sec
Array.from 170343.5 Ops/sec
Object.values 46958.5 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values


;