null
-aware operators allow to safely access nested properties or methods of an object without having to check for the existence of
each intermediate property manually. It provides a concise and safe way to access nested properties or methods without having to write complex and
error-prone null
checks.
This rule flags logical operations that can be safely replaced with the ?.
null
-aware operator.