@microsoft/fast-foundation > whitespaceFilter
whitespaceFilter() function
a method to filter out any whitespace _only_ nodes, to be used inside a template
Signature:export declare function whitespaceFilter(value: Node, index: number, array: Node[]): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
value | Node | The Node that is being inspected |
index | number | The index of the node within the array |
array | Node[] | The Node array that is being filtered |
boolean