(destroyed: boolean)
| 847 | } |
| 848 | |
| 849 | function warnIfDestroyed(destroyed: boolean): void { |
| 850 | if (destroyed) { |
| 851 | console.warn( |
| 852 | formatRuntimeError( |
| 853 | RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED, |
| 854 | 'This instance of the `ApplicationRef` has already been destroyed.', |
| 855 | ), |
| 856 | ); |
| 857 | } |
| 858 | } |
| 859 | |
| 860 | export function remove<T>(list: T[], el: T): void { |
| 861 | const index = list.indexOf(el); |
no test coverage detected
searching dependent graphs…