Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Ubuntu
Desktop
4 years ago
Test name Executions per second
Using the spread operator 3664041.0 Ops/sec
Using Object.assign 7954592.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign