Small Proposal "!in"
Tobias Buschor
tobias.buschor at shwups.ch
Thu Jun 28 16:14:06 UTC 2018
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()
}
What about a !in operator to write it like this?
if ('x' !in obj && 'y' !in obj) {
doit()
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180628/8630d175/attachment.html>
More information about the es-discuss
mailing list