Optional chaining ?. vs Logical AND &&.
const obj = { a: { b: { c: { d: 42 } } } };
const nullObj = { a: null };Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| Optional Chaining | | ready |
| Logical AND | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.