---
lang: en
title: 'API docs: filter.filtertemplate'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/filter
permalink: /doc/en/lb4/apidocs.filter.filtertemplate.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/filter](./filter.md) &gt; [filterTemplate](./filter.filtertemplate.md)

## filterTemplate() function

**Signature:**

```typescript
export declare function filterTemplate(strings: TemplateStringsArray, ...keys: any[]): (ctx: AnyObject) => any;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

strings


</td><td markdown="1">

TemplateStringsArray


</td><td markdown="1">


</td></tr>
<tr><td markdown="1">

keys


</td><td markdown="1">

any\[\]


</td><td markdown="1">


</td></tr>
</tbody></table>

**Returns:**

(ctx: AnyObject) =&gt; any


