Using the spread operator vs Using Object.assign in new Object vs Using Object.assign direct mutation| Test case name | Result |
|---|---|
| Using the spread operator | |
| Using Object.assign in new Object | |
| Using Object.assign direct mutation |
| Test name | Executions per second |
|---|---|
| ✓ Using the spread operator | 38,387,164 Ops/sec |
| Using Object.assign direct mutation | 10,438,912 Ops/sec |
| Using Object.assign in new Object | 8,791,547 Ops/sec |