@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): (value: Node, index: number, array: Node[]) => boolean;
Parameters
Parameter | Type | Description |
---|---|---|
selector | string | An optional selector to restrict the filter to. |
(value: Node, index: number, array: Node[]) => boolean