What is a more concise/cleaner way to write this?
var data = (prop.noHeader === true ? 'noheader ' : '') +
(prop.noFooter === true ? 'nofooter ' : '') +
(prop.noBorders === true ? 'noborders ' : '') +
(prop.noScrollbars === true ? 'noscrollbars ' : '') +
(prop.transparent === true ? 'transparent' : '');
Posted Dec 2, 2015, 11:08 PM UTC
58