Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi Note 5 Build/OPM1.171019.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile Safari/537.36 Juejin/225
Chrome Mobile 68
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
Using the spread operator 939737.6 Ops/sec
Using Object.assign 1232274.1 Ops/sec
Using lodash.assign 651301.2 Ops/sec
Using for...in 11953606.0 Ops/sec
HTML Preparation code:
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using lodash.assign

  • Using for...in


;