We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6af86e commit 295e936Copy full SHA for 295e936
lesson_12/structs_ts/src/stack.ts
@@ -28,7 +28,7 @@ export class Stack {
28
return null;
29
}
30
31
- return this.top?.val;
+ return this.top!.val;
32
33
34
isEmpty(): boolean {
0 commit comments