kit
GitHub
npm
Preparing search index...
@knitkode/utils
throttle
throttle
Function throttle
throttle
<
TFn
extends
Function
,
TContext
>
(
fn
:
TFn
,
limit
:
number
,
context
?:
TContext
,
)
:
(
this
:
TContext
,
...
args
:
any
[]
)
=>
Timeout
|
undefined
Throttle function (e.g. for resize / scroll handlers)
Type Parameters
TFn
extends
Function
TContext
Parameters
fn
:
TFn
limit
:
number
Optional
context
:
TContext
Returns
(
this
:
TContext
,
...
args
:
any
[]
)
=>
Timeout
|
undefined
Borrows
Mobius1/Rangeable
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
kit
Loading...
Throttle function (e.g. for resize / scroll handlers)