do-try-tuple
Version:
Catches errors and rejected promises, returns tuple
9 lines (8 loc) • 323 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const DoTryNs = require("./index.js");
const theGlobal = typeof window !== 'undefined' ? window : global;
theGlobal.doTry = DoTryNs.default;
theGlobal.safe = DoTryNs.safe;
theGlobal.success = DoTryNs.success;
theGlobal.failure = DoTryNs.failure;