Run details:
Mozilla/5.0 (Android 7.0; Tablet; rv:66.0) Gecko/66.0 Firefox/66.0
Android 7
Android 7.0
Tablet
5 years ago
Test name Executions per second
Using the spread operator 1830240.2 Ops/sec
Using Object.assign 3325439.8 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign