(selector: string, scope?: Node | string)
| 615 | Type.isFunction((node as any).querySelectorAll); |
| 616 | |
| 617 | const select = (selector: string, scope?: Node | string): Element[] => { |
| 618 | const elm = get(scope) ?? settings.root_element ?? doc; |
| 619 | return isParentNode(elm) ? Arr.from(elm.querySelectorAll(selector)) : []; |
| 620 | }; |
| 621 | |
| 622 | const run = function <R, T extends Node> (this: any, elm: RunArguments<T>, func: (node: T, i?: number) => R, scope?: any): RunResult<typeof elm, R> { |
| 623 | const context = scope ?? this; |
no test coverage detected
searching dependent graphs…