let politicaljourney = (criteria, sidestep, preexpulsive, rebegin, restricted) => { let journey = []; for(let step = 0; step < criteria.length; step++) { if(criteria[step] !== restricted) { journey.push(rebegin(criteria[step])); } else { sidestep(preexpulsive); } } return journey.join(', '); };