// this is equivalent
const prop2 = obj?.prop1.prop2?.prop3;
// to this
const {prop1:{prop2:{prop3=null}={}}={}} = obj || {} // too much bracket
if (prop3===null) return
but, mainly I try avoid this deep options
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
?. lead us to hide our problem?
My favourite solution is standard deconstruction
but, mainly I try avoid this deep options