I coded the following:
showTitles = (typeof showTitles !== \'undefined\') ? showTitles : \'Y\';
showSelectGroup = (typeof showSelectGroup !== \'undefined\')
Probably by using
showTitles = (showTitles === undefined) ? 'Y' : showTitles;
showSelectGroup = (showSelectGroup === undefined) ? 'Y' : showSelectGroup;
jslint has no issues with that (assuming showTitles and showSelectGroup are declared with var)
However, I'd write it as
var showTitles = showTitles || 'Y';
var showSelectGroup = showSelectGroup || 'Y';