if isset object property javascript code example Example: isset js if (typeof obj.foo !== 'undefined') { }