shorthand notation for attribute creation?

Hemanth H.M hemanth.hm at gmail.com
Sun Feb 9 02:17:51 PST 2014


Something like `var foo = {}; foo.bar ||= 3` would be very useful.

But not sure how something like `obj['name']['maxlength']` be reduced to
shorthand check if 'name' is not defined.



-- 
*'I am what I am because of who we all are'*
h3manth.com <http://www.h3manth.com>
*-- Hemanth HM *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140209/fb21952c/attachment.html>


More information about the es-discuss mailing list