|
|
|
|
|
by t-writescode
203 days ago
|
|
Since JS doesn’t have if statements return values, null chaining is a great way to keep both const variables and have some level of decidability. Null chaining is also a common pattern across most languages and is generally seen as readable |
|