Test name | Executions per second |
---|---|
wUmrLVWz | 1.0 Ops/sec |
1 waitfor delay '0:0:15' -- | 1.0 Ops/sec |
wUmrLVWz | 1.0 Ops/sec |
wUmrLVWz | 1.0 Ops/sec |
wUmrLVWz | 1.0 Ops/sec |
var x = 3;
var list = [undefined, NaN, null, ''];
[undefined, NaN, null, ''].includes(x)
x === undefined
|| Number.isNaN(x)
|| x === null
|| x === ''
typeof x === 'undefined'
|| Number.isNaN(x)
|| x === null
|| x === ''
list.includes(x)
typeof x === 'undefined' || list.includes(x)