Created
May 10, 2018 23:23
-
-
Save cdaz5/df650583ffcc4909d987315dc8ee1950 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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