(elm: string | T | null | undefined)
| 375 | : elm as T; |
| 376 | |
| 377 | const _get = <T extends Node>(elm: string | T | null | undefined): SugarElement<T | HTMLElement> | null => { |
| 378 | const value = get(elm); |
| 379 | return Type.isNonNullable(value) ? SugarElement.fromDom(value) : null; |
| 380 | }; |
| 381 | |
| 382 | const getAttrib = (elm: string | Element | null, name: string, defaultVal: string = ''): string => { |
| 383 | let value: string | undefined; |
no test coverage detected
searching dependent graphs…