Test name | Executions per second |
---|---|
Lodash Assing | 2451438.2 Ops/sec |
Native Assing | 4137775.5 Ops/sec |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.js"></script>
var person = {name: 'Frederick', lastName: 'Corcino Alejo'};
_.assign({}, person, {age: 15});
Object.assign({}, person, {age: 15});