Skip to content

Commit

Permalink
Add new Circular#toString() class method
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Apr 2, 2019
1 parent 4216f5d commit 8f17e92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/circular.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ class Circular extends List {
this.forEach(x => list.append(x));
return list;
}

toString() {
return this.join(',');
}
}

module.exports = Circular;

0 comments on commit 8f17e92

Please sign in to comment.