vtils

Home > utils > selectElement

selectElement() function

Signature:

export declare function selectElement<TElement extends Element = HTMLElement>(selectors: string | string[], baseElement?: ParentNode): TElement | undefined;

Parameters

Parameter Type Description
selectors string | string[]  
baseElement ParentNode (Optional)

Returns:

TElement | undefined