function read(value = 'fallback') { return String(value); } console.log([ read(), read(undefined), read(null), read(''), ].join('|'));