From Angular:

function isUndefined(value){return typeof value === 'undefined';}

function isDefined(value){return typeof value !== 'undefined';}

Looks like it, although I would probably advise against using implicit true matches in javascript just as good practice.

if (someCondition) { }  // If you don't fully understand how javascript performs type coercion, this might become a bug