Created
May 18, 2022 01:19
-
-
Save Massacre-Saint/65bb578b1c6c28f999c32d8f60fb12c0 to your computer and use it in GitHub Desktop.
20 times Promises function
This file contains 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
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm =() => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((repsonse) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve,reject) => { | |
axios.get(url) | |
.then((repsonse) => resolve(repsonse.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve,reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve,reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}): | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve,reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((repsonse) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); | |
const azProm = () => new Promise((resolve, reject) => { | |
axios.get(url) | |
.then((response) => resolve(response.data)) | |
.catch((error) => reject(error)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment