MCPcopy
hub / github.com/adrianhajdin/project_chat_application / getUsersInRoom

Function getUsersInRoom

server/users.js:27–27  ·  view source on GitHub ↗
(room)

Source from the content-addressed store, hash-verified

25const getUser = (id) => users.find((user) => user.id === id);
26
27const getUsersInRoom = (room) => users.filter((user) => user.room === room);
28
29module.exports = { addUser, removeUser, getUser, getUsersInRoom };

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected