Skip to content

Instantly share code, notes, and snippets.

@cdaz5
Created May 10, 2018 23:23
Show Gist options
  • Select an option

  • Save cdaz5/df650583ffcc4909d987315dc8ee1950 to your computer and use it in GitHub Desktop.

Select an option

Save cdaz5/df650583ffcc4909d987315dc8ee1950 to your computer and use it in GitHub Desktop.
if (jsonResponse.businesses) {
return jsonResponse.businesses.map(business => {
id: business.id,
imageSrc: business.image_url,
name: business.name,
address: business.location.address1,
city: business.location.city,
state: business.location.state,
zipCode: business.location.zip_code,
category: category.title,
rating: business.rating,
reviewCount:business.review_count
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment