O'Reilly logo
  • Ivan Petrov thinks this is interesting:

If you want to check to see whether a property is null or undefined (and you don't care which), then you can simply use an if statement and the negation operator (!), as shown in Listing 4-36.

From

Cover of Pro jQuery

Note

null or undefined