I have a function which parses the address components of the Google Maps API JSON and then returns the city / locality / route name.
JSON
The getAddre
getAddre
Code below simplified return num ? num : 0 for me:
return num ? num : 0
return num || 0;