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

  • Using Object.assign