Test name | Executions per second |
---|---|
Lodash FP | 238913.0 Ops/sec |
Native | 1399120.9 Ops/sec |
<script src='https://cdn.jsdelivr.net/lodash/4.17.4/lodash.fp.min.js'></script>
var array = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
var reducer = (r, x) => r + x
_.reduce(reducer, '')(array)
array.reduce(reducer, '')