Test name | Executions per second |
---|---|
lodash | 950433728.0 Ops/sec |
typeof | 846882496.0 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var x = 'this'
var y = _.isString(x)
var y = (typeof(x) === 'string')