Test name | Executions per second |
---|---|
native slice | 373862.4 Ops/sec |
lodash slice | 71213.1 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var test = Array.from({
length: 100000
}, () => Math.random())
test.slice(0,5000)
_.slice(test, 0, 5000)