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

6 lines
No EOL
145 B
JavaScript
Executable file

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