Run details:
Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0
Firefox Mobile 68
Android
Mobile
4 years ago
Test name Executions per second
Using the spread operator 1739883.8 Ops/sec
Using Object.assign 3351977.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign