言語によって null や空文字の扱いは異なることがあります。 以下に例を示します。(★は注意が必要です) ポイントは3つです。 ・VB.NET では、String 型の等価/不等価演算子は Nothing と空文字を等しいと判断します。 ・JavaScript では、非厳密演算子は null と ...
nullをNumber型に変える方法です。 nullをNumber型に変換すると0という値になります。 0はNumber型で「値が存在しない」という意味になります。 nullも「値が存在しない」という意味であることから「0」 合理的な変換結果となります。
@dudecc Thanks for reporting this. I don't remember when, but the conversion of null to None was removed long ago and the documentation wasn't updated at that time. The first commit referenced above ...
// This stands since the beginning of JavaScript typeof null === 'object'; A fix was proposed for ECMAScript (via an opt-in), but was rejected. It would have resulted in typeof null === 'null'.