Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Linux
Desktop
11 months ago
Test name Executions per second
Using the spread operator 11955500.0 Ops/sec
Using Object.assign 19476568.0 Ops/sec
Using For-In loop 34749816.0 Ops/sec
Using For-In loop with hasOwnProperty 21466634.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using For-In loop

  • Using For-In loop with hasOwnProperty