@microsoft/fast-element > elements
elements() function
Creates a function that can be used to filter a Node array, selecting only elements.
Signature:
elements: (selector?: string) => ElementsFilter
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
selector |
string |
(Optional) An optional selector to restrict the filter to. |
Returns: