javascript object property + multilevel + optional chaining code example
Example: javascript object property + multilevel + optional chaining
obj?.prop?.prop
obj?.[expr]?.prop
arr?.[index]?.prop
If a function named 'func' exists or not
obj?.func
If a property named 'func' is a function
obj?.func?.(args)