Skip to content

Instantly share code, notes, and snippets.

@Massacre-Saint
Created May 18, 2022 01:19
Show Gist options
  • Save Massacre-Saint/65bb578b1c6c28f999c32d8f60fb12c0 to your computer and use it in GitHub Desktop.
Save Massacre-Saint/65bb578b1c6c28f999c32d8f60fb12c0 to your computer and use it in GitHub Desktop.
20 times Promises function
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