Run details:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_12_2; en-US) AppleWebKit/537.23.23 (KHTML, like Gecko) Version/12.1.2 Safari/537.23.23
Safari 12
Mac OS X 10.12.2
Desktop
one year ago
Test name Executions per second
slice 315042.2 Ops/sec
spread operator 319905.5 Ops/sec
push apply into empty array 957040.1 Ops/sec
Array.from 283252.1 Ops/sec
Object.values 71666.2 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • push apply into empty array

  • Array.from

  • Object.values


;