HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
 
var value = {a: 30310, b: 100303, c: 3040494, d: null, e: undefined, f: 'aaaa', g: [], i: {i1: 'test', i2: 7}, k: 0, l: ''};
Tests:
  • _.some()

     
    _.some(value, (v) => v)
  • Native

     
    Object.values(value).some((v) => v)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    _.some()
    Native

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36
Chrome 93 on Linux
View result in a separate tab
Test name Executions per second
_.some() 4017723.2 Ops/sec
Native 4592780.5 Ops/sec