Using the spread operator vs Using Object.assign vs Using Object.assign no mutation| Test case name | Result |
|---|---|
| Using the spread operator | |
| Using Object.assign | |
| Using Object.assign no mutation |
| Test name | Executions per second |
|---|---|
| ✓ Using the spread operator | 38,545,340 Ops/sec |
| Using Object.assign | 10,769,090 Ops/sec |
| Using Object.assign no mutation | 8,661,344 Ops/sec |