Skip to content

Welshman Docs / @welshman/lib / throttleWithValue

Function: throttleWithValue() ​

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

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

Creates throttled function that returns cached value

Type Parameters ​

• T

Parameters ​

ms ​

number

Minimum time between updates

f ​

() => T

Function to throttle

Returns ​

Function

Function returning latest value

Returns ​

T