Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 YaBrowser/17.9.1.888 Yowser/2.5 Safari/537.36
Yandex Browser 17
Mac OS X 10.12.6
Desktop
6 years ago
Test name Executions per second
Using the spread operator 2235225.0 Ops/sec
Using Object.assign 1683116.8 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign


;