title: TypeScript - `+null` vs `Number(null)`
body: <p>tsconfig.json:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;compilerOptions&quot;: {
      &quot;strict&quot;: true,
      &quot;target&quot;: &quot;ESNext&quot;
    }
  }
  </code></pre>
  <p>Why <code>+null</code> throws <code>Object is possibly 'null'</code> and <code>Number(null)</code> works fine.</p>