Run details:
Mozilla/5.0 (Linux; Android 10; POCOPHONE F1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
4 years ago
Test name Executions per second
Using the spread operator 464746.0 Ops/sec
Using Object.assign 1176558.2 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign