3 ms·
If you are using TypeScript (which you should), undefined is not inherently any more dangerous or unpredictable than any other form of encoding missing values.
by paavohtl 5y ago
If you are using TypeScript (which you should), undefined is not inherently any more dangerous or unpredictable than any other form of encoding missing values.
- otabdeveloper4 5y agoTypeScript is better than JavaScript, yes. But still it doesn't guarantee anything at runtime.