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

  • Using Object.assign