Skip to content

Welshman Docs / @welshman/lib / throttleWithValue

Function: throttleWithValue() ​

throttleWithValue<T>(ms, f): () => T

Defined in: packages/lib/src/Tools.ts:1100

Creates throttled function that returns cached value

Type Parameters ​

T ​

T

Parameters ​

ms ​

number

Minimum time between updates

f ​

() => T

Function to throttle

Returns ​

Function returning latest value

(): T

Returns ​

T