Test name | Executions per second |
---|---|
LoDash | 101012.0 Ops/sec |
Native | 101612.5 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var str = "somestring";
console.log(_.toUpper(str));
console.log(str.toUpperCase());