Double negation (!!row.length) vs Comparison (row.length > 0) vs Double negation (!!row) vs Boolean constructor| Test case name | Result |
|---|---|
| Double negation (!!row.length) | |
| Comparison (row.length > 0) | |
| Double negation (!!row) | |
| Boolean constructor |
| Test name | Executions per second |
|---|---|
| ✓ Double negation (!!row.length) | 153,157 Ops/sec |
| Comparison (row.length > 0) | 150,694 Ops/sec |
| Boolean constructor | 124,618 Ops/sec |
| Double negation (!!row) | 115,213 Ops/sec |