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

