A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
coerce to boolean
Christian Fei847dd8d155b6
diff --git a/lib/repository.js b/lib/repository.jsindex d885992..a99d8aa 100644--- a/lib/repository.js+++ b/lib/repository.js@@ -22,7 +22,7 @@ export default class Repository {getChannels () { return this.channels }channelExists (name) {- return this.channels.find(c => c.name === name) ? true : false+ return !!this.channels.find(c => c.name === name)}addChannel (name) {this.channels.push({name})