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
[email protected] 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
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss