Merge branch 'master' into improve-bubble-sort

This commit is contained in:
Albert Still 2018-05-24 16:12:13 +10:00 committed by GitHub
commit 56b42ae79c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ export default class Stack {
* @return {*} * @return {*}
*/ */
peek() { peek() {
if (!this.linkedList.tail) { if (this.isEmpty()) {
return null; return null;
} }