with spread operator vs with mutation vs with object assign vs with for of loop vs with for loop| Test case name | Result |
|---|---|
| with spread operator | |
| with mutation | |
| with object assign | |
| with for of loop | |
| with for loop |
| Test name | Executions per second |
|---|---|
| ✓ with for of loop | 9,808,419 Ops/sec |
| with mutation | 9,694,777 Ops/sec |
| with for loop | 8,310,622 Ops/sec |
| with spread operator | 1,752,812 Ops/sec |
| with object assign | 388,366 Ops/sec |