license import { ElementRef } from '@angular/core' ; /**
 * Coerces an ElementRef or an Element into an element.
 * Useful for APIs that can accept either a ref or the native element itself.
 */ export function coerceElement < T > ( elementOrRef ) { return elementOrRef instanceof ElementRef ? elementOrRef . nativeElement : elementOrRef ; }