Run details:
Mozilla/5.0 (X11; CrOS x86_64 14816.64.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Chrome OS 14816.64.0
Desktop
one year ago
Test name Executions per second
Using the spread operator 489101.2 Ops/sec
Using Object.assign 989427.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign