|
|
|
|
|
by monoideism
2015 days ago
|
|
Because it’s very easy to write code that fails to check for null or undefined, which usually leads to errors since subsequent code often expects to find a non-null and non-undefined value. The beauty of a type checker here is that it can check to make sure you properly handle the nullable/undefinable type. |
|