diff --git a/src/list.js b/src/list.js index bda58b0..d3096b4 100644 --- a/src/list.js +++ b/src/list.js @@ -28,6 +28,10 @@ class List { return this; } + isCircular() { + return this.constructor.name === 'Circular'; + } + isEmpty() { return !this._head && this._length === 0; }