Using the spread operator vs Using Object.assign vs Using For-In loop vs Using For-In loop with type checks| Test case name | Result |
|---|---|
| Using the spread operator | |
| Using Object.assign | |
| Using For-In loop | |
| Using For-In loop with type checks |
| Test name | Executions per second |
|---|---|
| ✓ Using For-In loop | 64,307,048 Ops/sec |
| Using the spread operator | 34,730,484 Ops/sec |
| Using For-In loop with type checks | 27,982,600 Ops/sec |
| Using Object.assign | 25,773,346 Ops/sec |