Guest User

Untitled

a guest
Apr 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. const fetchDealersByZipProx = function() {
  2. const prox = [30, 50, 100];
  3. states.map(({ abbr }) => {
  4. zipcodes.lookupByState(abbr).map(({ zip }) => {
  5. prox.map(async p => {
  6. const result = await fetch(
  7. `${apiBaseURL}/${zip}/${p}`
  8. ).then(res => res.json);
  9. console.log(result);
  10. });
  11. });
  12. });
  13. };
Add Comment
Please, Sign In to add comment