Existential Operator / Null Propagation Operator

Kagami Rosylight saschanaz at outlook.com
Thu Oct 13 17:29:42 UTC 2016

>Why is this needed? Why are people trying to get the property of an object which is null?

I will appreciate null propagation when a function receives an “option bag”

function someFunction(options) {
  if(options?.foo) {

someFunction({ foo: true });

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161013/fa93b4e0/attachment-0001.html>

More information about the es-discuss mailing list