Run details:
Mozilla/5.0 (Linux; Android 10; ASUS_I001DE) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/46.06.4.5161
Chrome Mobile 77
Android
Mobile
3 years ago
Test name Executions per second
Using the spread operator 12547009.0 Ops/sec
Using Object.assign 3934512.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign