Test name | Executions per second |
---|---|
value == null | 13962800.0 Ops/sec |
value == undefined | 4855095.5 Ops/sec |
value === null | 13994496.0 Ops/sec |
value === undefined | 4927615.5 Ops/sec |
value === null || value === undefined | 3651562.8 Ops/sec |
_.isNil(value) | 4850119.5 Ops/sec |
value != null | 14152233.0 Ops/sec |
value != undefined | 4904745.0 Ops/sec |
value !== null | 14187827.0 Ops/sec |
value !== undefined | 4966123.0 Ops/sec |
value !== null && value !== undefined | 3670942.5 Ops/sec |
!_.isNil(value) | 4872453.0 Ops/sec |