Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fetchDealersByZipProx = function() {
- const prox = [30, 50, 100];
- states.map(({ abbr }) => {
- zipcodes.lookupByState(abbr).map(({ zip }) => {
- prox.map(async p => {
- const result = await fetch(
- `${apiBaseURL}/${zip}/${p}`
- ).then(res => res.json);
- console.log(result);
- });
- });
- });
- };
Add Comment
Please, Sign In to add comment