6 lines
No EOL
183 B
JavaScript
6 lines
No EOL
183 B
JavaScript
module.exports = function(username) {
|
|
for (let i = 0; i < global.users.length; i++) {
|
|
if (global.users[i].username == username)
|
|
return global.users[i];
|
|
}
|
|
} |