Any opinions about adding a Ruby-like ||= operator to EcmaScript?
Behrang Saeedzadeh
behrangsa at gmail.com
Wed Jul 29 11:23:10 UTC 2015
For example:
obj.property ||= "value";
This would only assign "value" to obj.property if property is undefined or
null.
--
Best regards,
Behrang Saeedzadeh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150729/f3fc6658/attachment.html>
More information about the es-discuss
mailing list