Test name | Executions per second |
---|---|
lodash | 93571.0 Ops/sec |
native | 104262.4 Ops/sec |
<script src='https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js'></script>
var value = [{a: 30310}, {b: 100303}, {c: 3040494}, {d: 6542321}, {e: 13123531}]
_.each(value, function(v,i) {console.log(v)})
value.forEach(function(v,i) {console.log(v)})