Skip to main content

@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

ParameterTypeDescription
valueNodeThe Node that is being inspected
indexnumberThe index of the node within the array
arrayNode[]The Node array that is being filtered
Returns:

boolean