Run details:
Mozilla/5.0 (Android 10; Mobile; rv:93.0) Gecko/93.0 Firefox/93.0
Firefox Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
Using the spread operator 2216646.5 Ops/sec
Using Object.assign 4755721.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign