Using reduce and the spread operator vs Using map and adding to an object vs Using reduce without spread operator| Test case name | Result |
|---|---|
| Using reduce and the spread operator | |
| Using map and adding to an object | |
| Using reduce without spread operator |
| Test name | Executions per second |
|---|---|
| ✓ Using reduce without spread operator | 6,312,028 Ops/sec |
| Using map and adding to an object | 6,041,884 Ops/sec |
| Using reduce and the spread operator | 608,652 Ops/sec |