Run details:
Mozilla/5.0 (Linux; Android 9; CLT-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Mobile Safari/537.36
Chrome Mobile 75
Android
Mobile
5 years ago
Test name Executions per second
Using the spread operator 1270640.0 Ops/sec
Using Object.assign 1480066.1 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign