const animalType = req.query.animal_type; googleContacts.people.connections.list({ auth: oauth2Client, resourceName: 'people/me', if (data.connections) { let contacts = data.connections .filter(o => o.phoneNumbers && o.phoneNumbers.length > 0) .map((o, i) => {