---
id: fast-foundation.whitespacefilter
title: whitespaceFilter() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [whitespaceFilter](./fast-foundation.whitespacefilter.md)

## whitespaceFilter() function

a method to filter out any whitespace \_only\_ nodes, to be used inside a template

<b>Signature:</b>

```typescript
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 |

<b>Returns:</b>

boolean
