<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [throttleFunction](./x-components.throttlefunction.md)

## throttleFunction variable

Util function that returns a throttled version of the function passed as parameter.

**Signature:**

```typescript
throttle: <Params extends any[]>(fn: (...args: Params) => void, throttleTimeMs: number) => ThrottleFunction<Params>
```
