Skip to main content

@microsoft/fast-element > elements

elements() function

Creates a function that can be used to filter a Node array, selecting only elements.

Signature:
export declare function elements(selector?: string): ElementsFilter;

Parameters

ParameterTypeDescription
selectorstringAn optional selector to restrict the filter to.
Returns:

ElementsFilter