concourse-client/src/util/Users.js
/**
 * Retrieves a user by ID
 * 
 * @param {ObjectID} id the ID of the user to retrieve
 * 
 * @returns the requested user, or null if the lookup fails
 */
Retrieves a user by ID

@param {ObjectID} id the ID of the user to retrieve

@returns the requested user, or null if the lookup fails
Retrieves a user by ID @param { ObjectID } id the ID of the user to retrieve @returns the requested user or null if the lookup fails
async function GetUser(id){
	const user = await fetch(`${Backend()}/api/v1/users/i/${id}`, {
		credentials: 'include'
	})
	if(user.status === 200){
		return user.json()
	}else{
		return null
	}
}
async function GetUser ( id ) { const user = await fetch ( ` ${ Backend ( ) } ${ id } ` , { credentials : 'include' } ) if ( user . status === 200 ) { return user . json ( ) } else { return null } }
Retrieves a user by ID
Retrieves a user by ID