Run details:
Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-G955F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.1 Chrome/75.0.3770.143 Mobile Safari/537.36
Chrome Mobile 75
Android
Mobile
4 years ago
Test name Executions per second
Using the spread operator 13307156.0 Ops/sec
Using Object.assign 1630619.5 Ops/sec
Using lodash.clone 559713.7 Ops/sec
HTML Preparation code:
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using lodash.clone