Test case name | Result |
---|---|
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, e, f, g, h, i, j, k, l) | |
isNilLogicalNot(a, b, c, d, e, f, g, h, i, j, k, l) | |
isNilNullUndefined(a, b, c, d, e, f, g, h, i, j, k, l) | |
!a || !b || !c || !d || !e || !f || !g || !h || !i || !j || !k || !l | |
a == null|| b == null || c == null || d == null || e == null || f == null || g == null || h == null || i == null || j == null || k == null || l == null | |
isNilNull(a, b, c, d, e, f, g, h, i, j, k, l) | |
isNilSingleNullUndefined(a) || isNilSingleNullUndefined(b) || isNilSingleNullUndefined(c) || isNilSingleNullUndefined(d) || isNilSingleNullUndefined(e) || isNilSingleNullUndefined(f) || isNilSingleNullUndefined(g) || isNilSingleNullUndefined(h) || isNilSingleNullUndefined(i) || isNilSingleNullUndefined(j) || isNilSingleNullUndefined(k) || isNilSingleNullUndefined(l) | |
isNilWhile(a, b, c, d, e, f, g, h, i, j, k, l) | |
isNilFor(a, b, c, d, e, f, g, h, i, j, k, l) |
Test name | Executions per second |
---|---|
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 | 10020400.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) | 3512323.0 Ops/sec |
isNilLodash(a, b, c, d, e, f, g, h, i, j, k, l) | 597400.4 Ops/sec |
isNilLogicalNot(a, b, c, d, e, f, g, h, i, j, k, l) | 877762.6 Ops/sec |
isNilNullUndefined(a, b, c, d, e, f, g, h, i, j, k, l) | 2081954.0 Ops/sec |
!a || !b || !c || !d || !e || !f || !g || !h || !i || !j || !k || !l | 9870413.0 Ops/sec |
a == null|| b == null || c == null || d == null || e == null || f == null || g == null || h == null || i == null || j == null || k == null || l == null | 10656720.0 Ops/sec |
isNilNull(a, b, c, d, e, f, g, h, i, j, k, l) | 858496.9 Ops/sec |
isNilSingleNullUndefined(a) || isNilSingleNullUndefined(b) || isNilSingleNullUndefined(c) || isNilSingleNullUndefined(d) || isNilSingleNullUndefined(e) || isNilSingleNullUndefined(f) || isNilSingleNullUndefined(g) || isNilSingleNullUndefined(h) || isNilSingleNullUndefined(i) || isNilSingleNullUndefined(j) || isNilSingleNullUndefined(k) || isNilSingleNullUndefined(l) | 5388499.0 Ops/sec |
isNilWhile(a, b, c, d, e, f, g, h, i, j, k, l) | 739977.3 Ops/sec |
isNilFor(a, b, c, d, e, f, g, h, i, j, k, l) | 764236.9 Ops/sec |