title: What are some examples of code that rely on 'typeof null' returning an object?
body: <p>I am reading this book called YDKJS and it's mentioned that:</p>
  <blockquote>
  <p><code>typeof null</code> is an interesting case, because it errantly returns <code>&quot;object&quot;</code>, when you'd expect it to return <code>&quot;null&quot;</code>.</p>
  <p>Warning: This is a long-standing bug in JS, but one that is likely never going to be fixed. Too much code on the Web relies on the bug and thus fixing it would cause a lot more bugs!</p>
  </blockquote>
  <p>I can't wrap my head around any code that makes use of the return type of a <code>null</code>. Can anyone please give some example use cases?</p>