On Tue, Feb 15, 2011 at 1:59 PM, Diego Perini <[email protected]>wrote:

>
> I believe this is almost equivalent:
>
> try { a = person2.address.zip; } catch(err) { a = 'no zip'; }
>

Oh, actually I like that. Maybe even better unless you do it a lot.

- peter

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to