I am working with a variable called root
which could potentially be undefined. Its value is only determined at runtime.
const root = resolvedRoot || await this.fileSystem.getCurrentUserHome();
console.log('root.uri = ' + root.uri);
The existence of the property root.uri
is uncertain due to the nature of the above conditional logic.
Is there a method to securely and effectively display root.uri
?