Test name | Executions per second |
---|---|
Lodash | 8268346.5 Ops/sec |
Native | 26874966.0 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var data = ['mustafa', 'kemal', 'atatürk'];
_.includes(data, 'kemal');
data.includes('kemal');