mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2026-02-01 15:55:44 +00:00
Merge branch 'master' into improve-bubble-sort
This commit is contained in:
commit
56b42ae79c
@ -16,7 +16,7 @@ export default class Stack {
|
||||
* @return {*}
|
||||
*/
|
||||
peek() {
|
||||
if (!this.linkedList.tail) {
|
||||
if (this.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user