Test name | Executions per second |
---|---|
lodash | 26.0 Ops/sec |
native | 24.8 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var data = Array(1000000).fill({ a: 'a', b: 1 });
_.map(data, ({a, b}) => `${a}_${b}`)
data.map(({a, b}) => `${a}_${b}`)