Did you know you can add properties conditionally to an object with spread?
so instead of
function getUser(banned) {
const userStatus = {banned, banReason: 'Wizard'};
// only combine the user status if the user is banned
const user = { name: 'Micah' };