please add orEqual operator

Brendan Eich brendan at mozilla.org
Mon Aug 10 20:53:45 UTC 2015


Please search for older proposals on ecmascript.org. You'd find

http://wiki.ecmascript.org/doku.php?id=strawman:default_operator

ES6 parameter default values took a look of wind out of this one's sails.

/be

myemailum14 at gmail.com wrote:
> it could be used like this:
>
> if ( a == 1 ||= 2 ||=3 ||=5) { //do something if a is either 1,2,3,5}
>
> and it could be used like this
>
> a || = 0
> // a = a || 0
>
> thanks
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss


More information about the es-discuss mailing list