Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Safari/537.36
Chrome 87
Mac OS X 11.1.0
Desktop
4 years ago
Test name Executions per second
lodash 1814175.6 Ops/sec
native 1481756.6 Ops/sec
HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
 
var person = {name: 'Frederick', lastName: 'Corcino Alejo'};
Tests:
  • lodash

     
    let age = {age:15};
    let copied = _.assign({}, person, age);
  • native

     
    let age = {age: 15};
    let copied = {...person, ...age};