6 ms·I'd use: bar = bar != null ? bar : 'default';by elclanrs 13y agoI'd use: bar = bar != null ? bar : 'default';