Test case name | Result |
---|---|
Using the spread operator | |
Using Object.assign | |
Using For-In loop | |
Using For-In loop with hasOwnProperty |
Test name | Executions per second |
---|---|
Using the spread operator | 9263728.0 Ops/sec |
Using Object.assign | 3761126.0 Ops/sec |
Using For-In loop | 20671620.0 Ops/sec |
Using For-In loop with hasOwnProperty | 2368874.0 Ops/sec |