Test name | Executions per second |
---|---|
Lodash | 4371768.5 Ops/sec |
Native | 16712233.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');