JSFiddle - React, Tailwind, and code Playground
JavaScript
const hasUnderscore = (myThing = 'something', _, stuff = '.') => {
return `${myThing} ${stuff}`;
}
console.log('undefined is', hasUnderscore(undefined));
console.log('null is', hasUnderscore(null));
console.log('empty string is', hasUnderscore(''));
console.log('zero is', hasUnderscore(0));
console.log('a string is', hasUnderscore('a string'));