Redus Russ

Generation

code to explanationTue, 14 Mar 2023

const user = await get(`api.roblox.com/users/${/^\d+$/.test(input.value) ? input.value : `get-by-username?username=${input.value}`}`);

This line of code returns the user object of the user that you put in the search bar

Questions about programming?Chat with your personal AI assistant