[feature] add List object

This commit is contained in:
Janis
2022-10-25 18:45:15 +02:00
parent 1315c39ae1
commit d599e5d8ab
6 changed files with 61 additions and 51 deletions

View File

@@ -1,11 +1,10 @@
function getClientsInChannel(channel) {
let result = [];
clients.forEach((e) => {
clientList.items.forEach((e) => {
if (e.channel.id == channel.id) {
result.push(e);
}
});
console.log(result);
return result;
}