(destroyed: boolean)
| 858 | } |
| 859 | |
| 860 | function warnIfDestroyed(destroyed: boolean): void { |
| 861 | if (destroyed) { |
| 862 | console.warn( |
| 863 | formatRuntimeError( |
| 864 | RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED, |
| 865 | 'This instance of the `ApplicationRef` has already been destroyed.', |
| 866 | ), |
| 867 | ); |
| 868 | } |
| 869 | } |
| 870 | |
| 871 | export function remove<T>(list: T[], el: T): void { |
| 872 | const index = list.indexOf(el); |
no test coverage detected