(elementOrRef: ElementRef<T> | T)
| 13 | * Useful for APIs that can accept either a ref or the native element itself. |
| 14 | */ |
| 15 | export function coerceElement<T>(elementOrRef: ElementRef<T> | T): T { |
| 16 | return elementOrRef instanceof ElementRef ? elementOrRef.nativeElement : elementOrRef; |
| 17 | } |
no outgoing calls
no test coverage detected