(ref: T | IRefObject<T>)
| 32 | } |
| 33 | |
| 34 | export function getRef<T = HTMLElement>(ref: T | IRefObject<T>) { |
| 35 | if (ref && (ref as IRefObject<T>).current) { |
| 36 | return (ref as IRefObject<T>).current; |
| 37 | } |
| 38 | |
| 39 | return ref as T; |
| 40 | } |
no outgoing calls
no test coverage detected