Any opinions about adding a Ruby-like ||= operator to EcmaScript?

Behrang Saeedzadeh behrangsa at
Wed Jul 29 11:23:10 UTC 2015

For example: ||= "value";

This would only assign "value" to if property is undefined or
Best regards,
Behrang Saeedzadeh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list