In JS it seems it'd be more useful if it worked with undefined not null.

Thanks,
Michael McGlothlin
Sent from my iPhone

> On Aug 16, 2015, at 7:33 PM, Brandon Andrews <[email protected]> 
> wrote:
> 
> https://en.wikipedia.org/wiki/Null_coalescing_operator
> 
> Essentially x ?? y will return x when not null or undefined else it will 
> return y.
> 
> 
> A nice Javascript explanation of the current problems with using || that can 
> cause unforeseen bugs:
> 
> http://stackoverflow.com/a/476445
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to