Using the spread operator vs Using Object.assign vs Using For-In loop| Test case name | Result |
|---|---|
| Using the spread operator | |
| Using Object.assign | |
| Using For-In loop |
| Test name | Executions per second |
|---|---|
| ✓ Using For-In loop | 60,494,716 Ops/sec |
| Using the spread operator | 33,732,880 Ops/sec |
| Using Object.assign | 26,100,992 Ops/sec |