Binato/server/util/getUserById.js
2022-09-30 11:34:13 +01:00

6 lines
No EOL
127 B
JavaScript
Executable file

module.exports = function(id) {
for (let user of global.users.getIterableItems()) {
if (user.id == id)
return user;
}
}