I was skimming through some documentation in the Angular docs and ran across this chunk of code:
return this.exampleDatabase!.getRepoIssues(
this.sort.active, this.sort.direction, this.paginator.pageIndex);
Is this the TypeSrcript equivalent of the C# null-conditional operator for null checking?
I tried doing some stuff in JSFiddle but kept getting syntax errors:
Example:
const obj = { test: 'ing 123' };
console.log(obj.test);
console.log(obj!.doesntexist); // Excepting null here
But, instead, I get:
Uncaught SyntaxError: Unexpected token . at new Function () at exec (typescript.js:41) at HTMLDocument.runScripts (typescript.js:41)