Open MakarenkoElena91 opened 4 years ago
Problem: returning back the whole array, need to return just locality Solution:
result[0].address_components.filter(address => address.types.includes('locality'))[0].long_name
ref: https://stackoverflow.com/a/56598506
Problem: returning back the whole array, need to return just locality Solution:
ref: https://stackoverflow.com/a/56598506