Null Propagation Operator proposal for JavaScript

At it’s January meeting, TC39 (essentially the standards body responsible for JavaScript) heard a proposal for some syntactical sugar that really excites me. ┬áIt’s called the Null Propagation operator and allows code that looks like const firstName = (message && message.body && message.body.user && message.body.user.firstName) || ‘default’; to become code that looks like const firstName […]