generator js
getAllPlaylists: function(){
if(!this.playlists.length) this.listPlaylists();
const pl = this.gen.next();
if(pl.done) return false;
return this.cms.getVideosInPlaylist(pl.value.getId());
},
getPlaylist: function*(){
yield* this.playlists;
},