Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.86 YaBrowser/20.8.0.893 Yowser/2.5 Safari/537.36
Yandex Browser 20
Mac OS X 10.14.4
Desktop
4 years ago
Test name Executions per second
Using the spread operator 1605535.4 Ops/sec
Using Object.assign 5061901.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign