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 with type checks | 64,490,060 Ops/sec |
| Using For-In loop | 64,082,452 Ops/sec |
| Using the spread operator | 33,980,480 Ops/sec |
| Using Object.assign | 26,552,656 Ops/sec |