While reading through javascript codes I\'ve been seeing the ! operator used for non boolean variables. Here is an example of code not used in.
!
!object
will return false when the object is undefined, equals to null or 0, true otherwise.