Run details:
Mozilla/5.0 (Linux; Android 8.0.0; LDN-L21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.99 Mobile Safari/537.36
Chrome Mobile 80
Android 8.0.0
Mobile
4 years ago
Test name Executions per second
Using the spread operator 1445702.2 Ops/sec
Using Object.assign 406749.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign