Test case name | Result |
---|---|
!a || !b || !c || !d || !e || !f || !g || !h || !i || !j || !k || !l | |
a === null || a === undefined || b === null || b === undefined || c === null || c === undefined || d === null || d === undefined || e === null || e === undefined || f === null || f === undefined || g === null || g === undefined || h === null || h === undefined || i === null || i === undefined || j === null || j === undefined || k === null || k === undefined || l === null || l === undefined | |
_.isNil(a) || _.isNil(b) || _.isNil(c) || _.isNil(d) || _.isNil(e) || _.isNil(f) || _.isNil(g) || _.isNil(h) || _.isNil(i) || _.isNil(j) || _.isNil(k) || _.isNil(l) | |
isNilLodash(a, b, c, d) | |
isNilLogicalNot(a, b, c, d) | |
isNilNullUndefined(a, b, c, d) | |
isNilLodash(e) | |
isNilLogicalNot(e) | |
isNilNullUndefined(e) |
Test name | Executions per second |
---|---|
!a || !b || !c || !d || !e || !f || !g || !h || !i || !j || !k || !l | 10990570.0 Ops/sec |
a === null || a === undefined || b === null || b === undefined || c === null || c === undefined || d === null || d === undefined || e === null || e === undefined || f === null || f === undefined || g === null || g === undefined || h === null || h === undefined || i === null || i === undefined || j === null || j === undefined || k === null || k === undefined || l === null || l === undefined | 10312080.0 Ops/sec |
_.isNil(a) || _.isNil(b) || _.isNil(c) || _.isNil(d) || _.isNil(e) || _.isNil(f) || _.isNil(g) || _.isNil(h) || _.isNil(i) || _.isNil(j) || _.isNil(k) || _.isNil(l) | 3390897.0 Ops/sec |
isNilLodash(a, b, c, d) | 1094307.0 Ops/sec |
isNilLogicalNot(a, b, c, d) | 2069580.0 Ops/sec |
isNilNullUndefined(a, b, c, d) | 2053910.0 Ops/sec |
isNilLodash(e) | 1753562.0 Ops/sec |
isNilLogicalNot(e) | 5075063.0 Ops/sec |
isNilNullUndefined(e) | 2750588.0 Ops/sec |