My project is littered with things like :
if(selectedDestination.modeOfTransport && selectedDestination.modeOfTransport.value === 'Driving'"){
// Do something
}
Ideally I'd like to just have:
if(selectedDestination.modeOfTransport.value === 'Driving'")
and let it just be false if there's no 'modeOfTransport' property.