UNPKG
@editorjs/table
Version:
latest (2.4.5)
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.2
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.3.0
1.2.2
1.2.1
1.2.0
Table for Editor.js
editor-js/table
@editorjs/table
/
dist
/
utils
/
throttled.d.ts
8 lines
(7 loc)
•
260 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * Limits the frequency of calling a function * *
@param
{
number
}
delay
- delay between calls in milliseconds *
@param
{
function
}
fn
- function to be throttled */
export
default
function
throttled
(
delay
:
number
,
fn
:
Function
):
(
...
args
:
any
[]
) =>
any
;