Using the spread operator with constant inside vs Using Object.assign vs Using the spread operator| Test case name | Result |
|---|---|
| Using the spread operator with constant inside | |
| Using Object.assign | |
| Using the spread operator |
| Test name | Executions per second |
|---|---|
| ✓ Using the spread operator with constant inside | 82,493,128 Ops/sec |
| Using the spread operator | 25,963,040 Ops/sec |
| Using Object.assign | 9,045,195 Ops/sec |