Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Linux
Desktop
5 months ago
Test name Executions per second
Using the spread operator 13133539.0 Ops/sec
Using Object.assign 22564900.0 Ops/sec
Using For-In loop 41620304.0 Ops/sec
Using For-In loop with hasOwnProperty 21270180.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using For-In loop

  • Using For-In loop with hasOwnProperty


;