UNPKG

ts-comply

Version:

TypeTools is a Typescript library for providing extensible tooling runtime validations and type helpers.

12 lines (10 loc) 278 B
/* Firestack (c) 2020, License: MIT */ export function autoUnsub(component: any) { if (component && component.__rx_subs) { for (const sub of component.__rx_subs) { if (sub && sub.unsubscribe && sub.unsubscribe.call) { sub.unsubscribe(); } } } }