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.


Cover of Pro jQuery


null or undefined