Hi,

> if(typeof a !== 'undefined') {
> }
> 
> And of course if we consider null:
> 
> if(typeof a !== 'undefined' && null !== a) {
> }
> 
> Thoughts ?

It’s really going to depend on the context / code.

In some case it will be obvious with one to check. In others we may need to 
change the code to make it clear which values are valid.

Thanks,
Justin

Reply via email to