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 getErrorResultPromise(promise) { try { const result = await promise; return [void 0, result]; } catch (err) { return [err, void 0]; } } //# sourceMappingURL=get-error-result-promise.js.map