Using the spread operator vs Using Object.assign vs Using Object.assign with into empty object| Test case name | Result |
|---|---|
| Using the spread operator | |
| Using Object.assign | |
| Using Object.assign with into empty object |
| Test name | Executions per second |
|---|---|
| ✓ Using the spread operator | 16,492,294 Ops/sec |
| Using Object.assign | 5,591,486 Ops/sec |
| Using Object.assign with into empty object | 4,944,587 Ops/sec |