Run details:
Mozilla/5.0 (Linux; Android 11; LE2100) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Mobile Safari/537.36
Chrome Mobile 100
Android
Mobile
2 years ago
Test name Executions per second
Using the spread operator 1754421.6 Ops/sec
Using Object.assign 3665572.8 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign