Run details:
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.143 Safari/537.36 Vivaldi/1.95.1077.45
Chrome 64
Linux
Desktop
4 years ago
Test name Executions per second
Using the spread operator 1161973.2 Ops/sec
Using Object.assign 888500.9 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign