Hi, I was thinking, is there a proposal for `or equal` operator as in ruby,
or is there any sense for doing so?
Example:
```js
let a = 1;
let b = 0;
a ||= b;
```
Would be interpreted as
```js
a = a || b;
```
PS:
Ruby version is
```ruby
a || a = b;
```
They are both equal, but it doesn't look like the javascript version of
doing this.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to