Test name | Executions per second |
---|---|
_.join | 2808284.2 Ops/sec |
array.join | 4904262.0 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var elements = ["cat", "dog", "bat"]
_.join(elements, ' ,')
elements.join(' ,')