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 | 63,454,140 Ops/sec |
| Using the spread operator | 34,447,756 Ops/sec |
| Using For-In loop with type checks | 27,765,372 Ops/sec |
| Using Object.assign | 26,264,912 Ops/sec |