I'm a bit confused by what is considered true in an if statement in javascript.
Example:
if (object.property) {
// stuff...
}
Under which circumstances will the content of this statement be executed? Are there any browser differences in interpreting this statement or anything else that you "need to know" regarding this?
For example: - property exists but is not set to anything - property is an empty string - property is null, undefined, false