On Thu, Jun 28, 2018 at 5:14 PM, Tobias Buschor <tobias.busc...@shwups.ch>
wrote:
> I dont like to write:
> if ( !('x' in obj) &&  !('y' in obj) ) {
>      doit()
> }
>
> I was even tempted to write it that way:
> if ('x' in obj  ||  'y' in obj) { } else {
>      doit()
> }

There's

```js
if (!('x' in obj  ||  'y' in obj)) {
     doit()
}
```

That said, I've wanted !in many a time, in a minor sort of way...

-- T.J. Crowder
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to