vtils

Home > utils > selectElementExists

selectElementExists() function

Signature:

export declare function selectElementExists(selectors: string | string[], baseElement?: ParentNode): boolean;

Parameters

Parameter Type Description
selectors string | string[] One or more CSS selectors separated by commas
baseElement ParentNode (Optional) The element to look inside of Whether it’s been found

Returns:

boolean