frontend/.pnpm-store/v3/files/96/0b794628595d5629cb5d085cb9d46e2f4d3c6c4393a168fd9b16ec7a5a08b1a4e0b2be90aa262e08be6cf78c9769fee63c6f5c4604c25b8a80c590251e2caf

12 lines
276 B
Plaintext

function executeTwoCallbacks(promise, callback, errorCallback) {
if (typeof callback === 'function') {
promise.then(callback);
}
if (typeof errorCallback === 'function') {
promise.catch(errorCallback);
}
}
export default executeTwoCallbacks;