Using the spread operator vs Using Object.assign vs MergeObjects function| Test case name | Result |
|---|---|
| Using the spread operator | |
| Using Object.assign | |
| MergeObjects function |
| Test name | Executions per second |
|---|---|
| ✓ MergeObjects function | 24,928,908 Ops/sec |
| Using the spread operator | 7,531,426 Ops/sec |
| Using Object.assign | 7,256,352 Ops/sec |