Run details:
Mozilla/5.0 (Linux; Android 10; Mi 9T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
Using the spread operator 1016881.3 Ops/sec
Using Object.assign 2964788.2 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign