const value = 1; const isNil = value == null; vs const value = 1; const myIsNil = value === undefined || value === null;| Test case name | Result |
|---|---|
| const value = 1; const isNil = value == null; | |
| const value = 1; const myIsNil = value === undefined || value === null; |
| Test name | Executions per second |
|---|---|
| ✓ const value = 1; const isNil = value == null; | 151,331,792 Ops/sec |
| const value = 1; const myIsNil = value === undefined || value === null; | 12,923,109 Ops/sec |