Skip to content

Commit 4d27f46

Browse files
fix: top is not defined
1 parent 687e044 commit 4d27f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lesson_12/structs_ts/src/stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ export class Stack {
4141
}
4242

4343
isEmpty(): boolean {
44-
return top === undefined;
44+
return this.top === undefined;
4545
}
4646
}

0 commit comments

Comments
 (0)