Run details:
Mozilla/5.0 (Linux; Android 13; MT2111) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36
Chrome Mobile 111
Android
Mobile
one year ago
Test name Executions per second
Using the spread operator 1430797.2 Ops/sec
Using Object.assign 2669425.2 Ops/sec
Using For-In loop 28788474.0 Ops/sec
Using For-In loop with hasOwnProperty 1404335.4 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using For-In loop

  • Using For-In loop with hasOwnProperty


;