Loading ...
Sorry, an error occurred while loading the content.

[jslint] Re: typeof null

Expand Messages
  • douglascrockford
    ... Let me know when that happens.
    Message 1 of 10 , Jul 23, 2012
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, "spence.randall@..." <randall@...> wrote:
      >
      > Right, typof null was never a question, that one is pretty well known to be problematic. I was more curious about typeof undefined.
      >
      > So typeof undefined is bigger and slower and less informative, that I can understand, but what do you recommend to guard against someone assigning to undefined? Use our own local variable? That also seems to me like it would be less informative.


      Let me know when that happens.
    Your message has been successfully submitted and would be delivered to recipients shortly.