ts-comply
Version:
TypeTools is a Typescript library for providing extensible tooling runtime validations and type helpers.
15 lines • 492 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.autoUnsub = void 0;
function autoUnsub(component) {
if (component && component.__rx_subs) {
for (var _i = 0, _a = component.__rx_subs; _i < _a.length; _i++) {
var sub = _a[_i];
if (sub && sub.unsubscribe && sub.unsubscribe.call) {
sub.unsubscribe();
}
}
}
}
exports.autoUnsub = autoUnsub;
//# sourceMappingURL=angular.helper.js.map
;