UNPKG

return-style

Version:

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

10 lines 198 B
export async function isFailurePromise(promise) { try { await promise; return false; } catch { return true; } } //# sourceMappingURL=is-failure-promise.js.map