UNPKG

return-style

Version:

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

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