On Wed, Feb 1, 2017 at 7:18 PM, Andrea Giammarchi <
[email protected]> wrote:

> I understand, but you can also ternary within a ternary so why would this
> have different capabilities ?
>

Because `if (x === (|| 2, (&& 3, y === 1)))` is trying to use only *half*
of the expression within another expression. But using a conditional within
a conditional is using an entire expression within another expression,
which is fine.

-- T.J.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to