Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 YaBrowser/19.3.1.828 Yowser/2.5 Safari/537.36
Yandex Browser 19
Windows
Desktop
5 years ago
Test name Executions per second
Using the spread operator 3321830.8 Ops/sec
Using Object.assign 3253404.8 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign