Run details:
Mozilla/5.0 (Android 8.0.0; Mobile; rv:107.0) Gecko/107.0 Firefox/107.0
Firefox Mobile 107
Android 8.0.0
Mobile
2 years ago
Test name Executions per second
Using the spread operator 2626300.8 Ops/sec
Using Object.assign 4563462.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign