Skip to content

Instantly share code, notes, and snippets.

@PierreTurnbull
Last active February 28, 2019 18:41
Show Gist options
  • Save PierreTurnbull/7764463cd00519d9e86eb3143bff795a to your computer and use it in GitHub Desktop.
Save PierreTurnbull/7764463cd00519d9e86eb3143bff795a to your computer and use it in GitHub Desktop.
distanceMatrix = [{
'Av. Vieira Souto, 168 - Ipanema, Rio de Janeiro - RJ, 22420-004, Brazil': 'ZERO_RESULTS'
},
{
'Rynek Główny 12, 33-332 Kraków, Poland': 1540493
},
{
'27 Derb Lferrane, Marrakech 40000, Morocco': 2539727
},
{
'R. Roberto Símonsen, 122 - Sé, São Paulo - SP, 01017-020, Brazil': 'ZERO_RESULTS'
}]
distanceMatrix.filter(location => {
const value = Object.values(location)[0]
return !isNaN(value)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment