Run details:
Mozilla/5.0 (Android 9; Tablet; rv:66.0) Gecko/66.0 Firefox/66.0
Firefox 66
Android
Tablet
5 years ago
Test name Executions per second
slice 7328481.0 Ops/sec
spread 5836691.5 Ops/sec
Tests:
  • slice

    AخA
     
    var params = [ "hello", true, 7 ]; var other = params.slice();
  • spread

     
    var params = [ "hello", true, 7 ]; var other = [...params];