Test name | Executions per second |
---|---|
Double negation (!!row.length) with destructuring | 152023.5 Ops/sec |
Double negation (!!row.length) without destructuring | 150900.1 Ops/sec |
Comparison (row.length > 0) with destructuring | 149770.0 Ops/sec |
Comparison (row.length > 0) without destructuring | 149477.1 Ops/sec |
Double negation (!!row) | 113755.1 Ops/sec |
Boolean constructor | 122064.4 Ops/sec |
Array.length property | 148235.5 Ops/sec |
Array.some() method | 149990.5 Ops/sec |
Object.keys() | 667.9 Ops/sec |
for...of loop | 147990.8 Ops/sec |
Array.isArray() with length | 147376.4 Ops/sec |
typeof with length | 142089.6 Ops/sec |
First element check | 149051.6 Ops/sec |