UNPKG

return-style

Version:

Non-intrusively convert the result of any function or promise to the user's desired style.

10 lines 246 B
export async function getResultErrorPromise(promise) { try { const result = await promise; return [result, void 0]; } catch (e) { return [void 0, e]; } } //# sourceMappingURL=get-result-error-promise.js.map