<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [fpRunWithin](./rc-js-util.fprunwithin.md)

## fpRunWithin() function

Runs the `callback` within the `wrapperFunctions`<!-- -->. This is useful for "positional" attributes, like debug labels, lifecycle block scopes etc.

**Signature:**

```typescript
export declare function fpRunWithin<TCallback extends (...args: unknown[]) => unknown>(wrapperFunctions: readonly ((callback: () => ReturnType<TCallback>) => ReturnType<TCallback>)[], callback: TCallback): (...args: Parameters<TCallback>) => ReturnType<TCallback>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

wrapperFunctions


</td><td>

readonly ((callback: () =&gt; ReturnType&lt;TCallback&gt;) =&gt; ReturnType&lt;TCallback&gt;)\[\]


</td><td>


</td></tr>
<tr><td>

callback


</td><td>

TCallback


</td><td>


</td></tr>
</tbody></table>
**Returns:**

(...args: Parameters&lt;TCallback&gt;) =&gt; ReturnType&lt;TCallback&gt;

## Remarks

See [fpRunWithin()](./rc-js-util.fprunwithin.md)<!-- -->.

