"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isErrorLike = isErrorLike;
// Useful to easily cast and then examine errors that are otherwise 'unknown':
function isErrorLike(error) {
    return typeof error === 'object' && (error instanceof Error ||
        error.message ||
        error.code ||
        error.stack);
}
//# sourceMappingURL=error.js.map