Run details:
Mozilla/5.0 (Linux; Android 7.1.1; Lenovo TB-X704F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36
Chrome 80
Android 7.1.1
Desktop
2 years ago
Test name Executions per second
Using the spread operator 2198592.5 Ops/sec
Using Object.assign 637503.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign