let showDots = typeof project.showDots === 'boolean' ? project.showDots : false; if (showDots) { // Somecode ... }
Why, just why??